예제 #1
0
 public function executeList()
 {
     $c = new Criteria();
     $c->add(DutyPlacePeer::STATUS, Constant::RECORD_STATUS_DELETED, Criteria::NOT_EQUAL);
     $c->addAscendingOrderByColumn(DutyPlacePeer::TITLE);
     $this->duty_places = DutyPlacePeer::doSelect($c);
 }
예제 #2
0
 public static function GetDutyPlace()
 {
     $c = new Criteria();
     $c->add(DutyPlacePeer::STATUS, Constant::RECORD_STATUS_ACTIVE);
     //$c->add(EmployeePeer::ROLE_ID, 1 , Criteria::NOT_EQUAL);
     $places = DutyPlacePeer::doSelect($c);
     if ($places) {
         return $places;
     } else {
         return false;
     }
 }
예제 #3
0
 /**
  * Retrieve multiple objects by pkey.
  *
  * @param      array $pks List of primary keys
  * @param      PropelPDO $con the connection to use
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(DutyPlacePeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(DutyPlacePeer::DATABASE_NAME);
         $criteria->add(DutyPlacePeer::ID, $pks, Criteria::IN);
         $objs = DutyPlacePeer::doSelect($criteria, $con);
     }
     return $objs;
 }