Exemple #1
0
 public function countEmployeeDetails($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseEmployeeDetailPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(EmployeeDetailPeer::EMPLOYEE_ID, $this->getId());
     return EmployeeDetailPeer::doCount($criteria, $distinct, $con);
 }
Exemple #2
0
 public function countEmployeeDetailsRelatedBySpouseReligionId($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseEmployeeDetailPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(EmployeeDetailPeer::SPOUSE_RELIGION_ID, $this->getId());
     return EmployeeDetailPeer::doCount($criteria, $distinct, $con);
 }