示例#1
0
 /**
  * @param PersonCriteria $criteria
  */
 private function checkFirstname(PersonCriteria $criteria)
 {
     if ($criteria->hasFirstname()) {
         $this->qb->where('p.firstname = :firstname');
         $this->qb->setParameter('firstname', $criteria->getFirstname());
     }
 }