public function preSave(PropelPDO $con = null) { if ($this->isNew()) { $this->setUniqueHashForFeedUrl(md5(time() . rand(0, time()))); } return parent::preSave($con); }