protected function _afterEntityFetch(AnCommandContext $context)
    {
        //set the persistd flag
        $this->setPersisted(true);

        //set the raw data
        $this->_data->setRowData($context['data']);

        //force setting the keys
        foreach ($context['keys'] as $key => $value) {
            $this->_data[$key] = $value;
        }
    }
protected function _afterEntityFetch(AnCommandContext $context)
    {
        //set the persistd flag
        $this->setPersisted(true);

        //set the raw data
        $this->_data->setRowData($context['data']);

        //force setting the keys
        foreach ($context['keys'] as $key => $value) {
            $this->_data[$key] = $value;
        }
    }
protected function _afterEntityFetch ( AnCommandContext $ context ) { //set the persistd flag $ this -> setPersisted ( true ) ; //set the raw data $ this -> _data -> setRowData ( $ context [ 'data' ] ) ; //force setting the keys foreach ( $ context [ 'keys' ] as $ key => $ value ) { $ this -> _data [ $ key ] = $ value ; } }
Sets the enity data after it has been fetched from the database storage.

@param AnCommandContext $context Context
Sets the enity data after it has been fetched from the database storage .