Пример #1
0
 /**
  *
  * @param IXP_Form_Meeting $form The form object
  * @param \Entities\Meeting $object The Doctrine2 entity (being edited or blank for add)
  * @param bool $isEdit True of we are editing an object, false otherwise
  * @return void
  */
 protected function addPostValidate($form, $object, $isEdit)
 {
     $object->setUpdatedBy($this->getUser()->getId());
     $object->setUpdatedAt(new DateTime());
     if (!$isEdit) {
         $object->setCreatedBy($this->getUser());
         $object->setCreatedAt(new DateTime());
     }
     return true;
 }
 public function setCreatedAt($createdAt)
 {
     $this->__load();
     return parent::setCreatedAt($createdAt);
 }