source/Spiral/ORM/RecordEntity.php
private function handleUpdate(UpdateCommand $command)
    {
        //Once command executed we will know some information about it's context (for exampled added FKs)
        foreach ($command->getContext() as $name => $value) {
            $this->setField($name, $value, true, false);
        }

        $this->state = ORMInterface::STATE_LOADED;
        $this->dispatch('updated', new RecordEvent($this, $command));
    }
private function handleUpdate(UpdateCommand $command)
    {
        //Once command executed we will know some information about it's context (for exampled added FKs)
        foreach ($command->getContext() as $name => $value) {
            $this->setField($name, $value, true, false);
        }

        $this->state = ORMInterface::STATE_LOADED;
        $this->dispatch('updated', new RecordEvent($this, $command));
    }
private function handleUpdate ( UpdateCommand $ command ) { //Once command executed we will know some information about it's context (for exampled added FKs) foreach ( $ command -> getContext ( ) as $ name => $ value ) { $ this -> setField ( $ name , $ value , true , false ) ; } $ this -> state = ORMInterface :: STATE_LOADED ; $ this -> dispatch ( 'updated' , new RecordEvent ( $ this , $ command ) ) ; }
Handle result of update command.

@param UpdateCommand $command
Handle result of update command .