src/Repositories/EavAttributeRepository.php
/**
     * Initializes the repository's prepared statements.
     *
     * @return void
     */
Initializes the repository's prepared statements.
@return void
Initializes the repository ' s prepared statements . @return void
public function init()
    {
        $this->eavAttributeStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE));
        $this->eavAttributesByUserDefinedStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTES_BY_IS_USER_DEFINED));
        $this->eavAttributesByOptionValueAndStoreIdStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTES_BY_OPTION_VALUE_AND_STORE_ID));
        $this->eavAttributeByEntityTypeIdAndAttributeCodeStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTE_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_CODE));
        $this->eavAttributesByEntityTypeIdAndUserDefinedStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTES_BY_ENTITY_TYPE_ID_AND_IS_USER_DEFINED));
        $this->eavAttributesByEntityTypeIdAndAttributeSetNameStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ATTRIBUTES_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_SET_NAME));
    }
public function init ( ) { $ this -> eavAttributeStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTE ) ) ; $ this -> eavAttributesByUserDefinedStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTES_BY_IS_USER_DEFINED ) ) ; $ this -> eavAttributesByOptionValueAndStoreIdStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTES_BY_OPTION_VALUE_AND_STORE_ID ) ) ; $ this -> eavAttributeByEntityTypeIdAndAttributeCodeStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTE_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_CODE ) ) ; $ this -> eavAttributesByEntityTypeIdAndUserDefinedStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTES_BY_ENTITY_TYPE_ID_AND_IS_USER_DEFINED ) ) ; $ this -> eavAttributesByEntityTypeIdAndAttributeSetNameStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: EAV_ATTRIBUTES_BY_ENTITY_TYPE_ID_AND_ATTRIBUTE_SET_NAME ) ) ; }
Initializes the repository's prepared statements.
Initializes the repository ' s prepared statements .
// initialize the prepared statements