$showHistoryBc = true; if (!isset($history)) { $id = $sf_params->get('id'); if ($id) { $history = ConceptPropertyHistoryPeer::retrieveByPK($id); } } if (!isset($concept_property)) { if ($history) { sfPropelParanoidBehavior::disable(); $concept_property = $history->getConceptProperty(); } } if (!isset($concept)) { if ($concept_property) { sfPropelParanoidBehavior::disable(); $concept = $concept_property->getConceptRelatedByConceptId(); } } if (!isset($vocabulary)) { if ($concept) { $vocabulary = $concept->getVocabulary(); } } $tab = false; break; case 'user': $showBc = true; $showUserBc = true; if (!isset($user)) { $id = 'show' == $action && !$historydetail ? $sf_params->get('id') : $paramId;
public function executeInactiveEmployees(sfWebRequest $request) { $c = new Criteria(); // dof is set $c->add(EmployeePeer::DOF, null, Criteria::ISNOTNULL); $c->addAscendingOrderByColumn(EmployeePeer::LAST_NAME); sfPropelParanoidBehavior::disable(); $this->employees = EmployeePeer::doSelect($c); }
protected function disableParanoid(sfEvent $event, $result) { sfPropelParanoidBehavior::disable(); return true; }