Example #1
0
 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);
 }
 public static function disable()
 {
     self::$paranoidFlag = false;
 }
Example #3
0
     $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;
Example #4
0
 protected function disableParanoid(sfEvent $event, $result)
 {
     sfPropelParanoidBehavior::disable();
     return true;
 }