public function save(Doctrine_Connection $conn = null) { if ($this->isNew() && !$this->getStudentUid()) { $this->setStudentUid($this->getGeneratedIdNumber()); } parent::save($conn); AutoincrementTable::updateAutoincrement($this->getId(), 'Student'); }
public function beforeSave() { if ($this->isNewRecord) { $this->user_id = Yii::app()->user->id; $this->create_time = date('d/m/Y', time()); } return parent::beforeSave(); }
public function getId() { return parent::getId(); }
public static function model($className = __CLASS__) { return parent::model($className); }
public function getPeer() { if (self::$peer === null) { self::$peer = new StudentPeer(); } return self::$peer; }
public function getCareerStudents($criteria = null, PropelPDO $con = null) { $c = new Criteria(); $c->addDescendingOrderByColumn(CareerStudentPeer::CREATED_AT); return parent::getCareerStudents($c); }