public function postInsert(PropelPDO $con = null) { if (!$this->wasObjectSaved()) { return; } parent::postInsert($con); if (!$this->alreadyInSave) { kEventsManager::raiseEvent(new kObjectAddedEvent($this)); } }
/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return entryPeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new entryPeer(); } return self::$peer; }
/** * Sets contents of passed object to values from current object. * * If desired, this method can also make copies of all associated (fkey referrers) * objects. * * @param object $copyObj An object of entry (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @throws PropelException */ public function copyInto($copyObj, $deepCopy = false) { parent::copyInto($copyObj, $deepCopy); $copyObj->setEntitledPusersEdit($this->getEntitledPusersEdit()); $copyObj->setEntitledPusersPublish($this->getEntitledPusersPublish()); }
public function postInsert(PropelPDO $con = null) { parent::postInsert($con); kEventsManager::raiseEvent(new kObjectAddedEvent($this)); }