public function load($properties)
    {
        $keys = $this->_entity->getIdentifyingData();

        $this->_entity->getRepository()->getCommandChain()->disable();

        $query = $this->_entity->getRepository()->getQuery()
                    ->columns($properties)
                    ->where($keys);

        $data = $this->_entity->getRepository()->fetch($query, AnDomain::FETCH_ROW);

        if (!empty($data)) {
            $this->_row = array_merge($this->_row, (array) $data);

            foreach ($properties as $property) {
                unset($this->_materialized[$property]);
            }
        }

        $this->_entity->getRepository()->getCommandChain()->enable();

        return !empty($data);
    }
public function load($properties)
    {
        $keys = $this->_entity->getIdentifyingData();

        $this->_entity->getRepository()->getCommandChain()->disable();

        $query = $this->_entity->getRepository()->getQuery()
                    ->columns($properties)
                    ->where($keys);

        $data = $this->_entity->getRepository()->fetch($query, AnDomain::FETCH_ROW);

        if (!empty($data)) {
            $this->_row = array_merge($this->_row, (array) $data);

            foreach ($properties as $property) {
                unset($this->_materialized[$property]);
            }
        }

        $this->_entity->getRepository()->getCommandChain()->enable();

        return !empty($data);
    }
public function load ( $ properties ) { $ keys = $ this -> _entity -> getIdentifyingData ( ) ; $ this -> _entity -> getRepository ( ) -> getCommandChain ( ) -> disable ( ) ; $ query = $ this -> _entity -> getRepository ( ) -> getQuery ( ) -> columns ( $ properties ) -> where ( $ keys ) ; $ data = $ this -> _entity -> getRepository ( ) -> fetch ( $ query , AnDomain :: FETCH_ROW ) ; if ( ! empty ( $ data ) ) { $ this -> _row = array_merge ( $ this -> _row , ( array ) $ data ) ; foreach ( $ properties as $ property ) { unset ( $ this -> _materialized [ $ property ] ) ; } } $ this -> _entity -> getRepository ( ) -> getCommandChain ( ) -> enable ( ) ; return ! empty ( $ data ) ; }
Reloads an array of properies.

@param array $properties
Reloads an array of properies .