Esempio n. 1
0
 /**
  * Code to be run before inserting to database
  * @param PropelPDO $con
  * @return boolean
  */
 public function preInsert(PropelPDO $con = null)
 {
     $this->setCreatedAt(time());
     $this->setUpdatedAt(time());
     return parent::preInsert($con);
 }
Esempio n. 2
0
 /**
  * Code to be run before inserting to database
  * @param PropelPDO $con
  * @return boolean
  */
 public function preInsert(PropelPDO $con = null)
 {
     return parent::preInsert($con);
 }