public function save(PropelPDO $con = null) { $is_new = false; if ($this->isNew()) { $is_new = true; $this->setId(self::calculateId()); if ($this->getName() != self::DUMMY_KSHOW_NAME) { myStatisticsMgr::addKshow($this); } } myPartnerUtils::setPartnerIdForObj($this); mySearchUtils::setDisplayInSearch($this); $res = parent::save($con); if ($is_new) { $obj = kshowPeer::retrieveByPk($this->getId()); $this->setIntId($obj->getIntId()); } return $res; }