/**
  * {@inheritDoc}
  */
 public function prepareBeforeUpdate()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareBeforeUpdate', array());
     return parent::prepareBeforeUpdate();
 }
Example #2
0
 /**
  * Prepare update date
  *
  * @return void
  *
  * @PreUpdate
  */
 public function prepareBeforeUpdate()
 {
     if (0 < func_num_args()) {
         $event = func_get_arg(0);
         // PreUpdateEventArgs $event
         if ($event && !$event->hasChangedField('exported_pb')) {
             $this->setExportedPb(false);
         }
     }
     parent::prepareBeforeUpdate();
 }