/** * * @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 if we are editing, otherwise false * @return bool If false, the form is not processed */ protected function addPreFlush($form, $object, $isEdit) { if (!$object->getDate() instanceof DateTime) { $object->setDate(new DateTime($form->getValue('date'))); } if (!$object->getTime() instanceof DateTime) { $object->setTime(new DateTime($form->getValue('time'))); } return true; }
public function getDate() { $this->__load(); return parent::getDate(); }