public function update($entity)
    {
        $eloquentModel = $this->getEloquentModel($entity, true);

        $this->updateRelations($eloquentModel, 'update');

        $eloquentModel->save();

        $eloquentModel->afterSaving($entity, 'update');
    }
public function update($entity)
    {
        $eloquentModel = $this->getEloquentModel($entity, true);

        $this->updateRelations($eloquentModel, 'update');

        $eloquentModel->save();

        $eloquentModel->afterSaving($entity, 'update');
    }
public function update ( $ entity ) { $ eloquentModel = $ this -> getEloquentModel ( $ entity , true ) ; $ this -> updateRelations ( $ eloquentModel , 'update' ) ; $ eloquentModel -> save ( ) ; $ eloquentModel -> afterSaving ( $ entity , 'update' ) ; }
Update an entity object.

@param object $entity
@return void
Update an entity object .