Ejemplo n.º 1
0
 /**
  * Sets if a model must use dynamic update instead of the all-field update
  *
  *<code>
  *
  *class Robots extends \Phalcon\Mvc\Model
  *{
  *
  *   public function initialize()
  *   {
  *      $this->useDynamicUpdate(true);
  *   }
  *
  *}
  *</code>
  *
  * @param boolean $dynamicUpdate
  */
 protected function useDynamicUpdate($dynamicUpdate)
 {
     $this->_modelsManager->useDynamicUpdate($this, $dynamicUpdate);
 }
 /**
  * @param Event                 $event
  * @param ModelManagerInterface $modelsManager
  * @param ModelInterface        $model
  */
 public function afterInitialize(Event $event, ModelManagerInterface $modelsManager, ModelInterface $model)
 {
     $modelsManager->useDynamicUpdate($model, $this->dynamicUpdate);
 }