* */ /** * Сущность инвайта * * @package application.modules.invite * @since 2.0 */ class ModuleInvite_EntityCode extends EntityORM { protected function beforeSave() { if ($bResult = parent::beforeSave()) { if ($this->_isNew()) { $this->setDateCreate(date("Y-m-d H:i:s")); } } return $bResult; } }