public function postInsert(PropelPDO $con = null) { parent::postInsert($con); if (!$this->alreadyInSave) { kEventsManager::raiseEvent(new kObjectAddedEvent($this)); } }
public function postInsert(PropelPDO $con = null) { parent::postInsert($con); if (!$this->alreadyInSave) { kEventsManager::raiseEvent(new kObjectAddedEvent($this)); $category = $this->getcategory(); if ($category && $category->getPrivacyContexts() && !PermissionPeer::isValidForPartner(PermissionName::FEATURE_ENTITLEMENT_USED, $category->getPartnerId())) { PermissionPeer::enableForPartner(PermissionName::FEATURE_ENTITLEMENT_USED, PermissionType::SPECIAL_FEATURE, $category->getPartnerId()); } } }