コード例 #1
0
ファイル: Entry.php プロジェクト: delboy1978uk/expenses
 /**
  * @param EntryCriteria $criteria
  */
 private function checkCategory(EntryCriteria $criteria)
 {
     if ($criteria->hasCategory()) {
         $this->qb->andWhere('e.category = :category');
         $this->qb->setParameter('category', $criteria->getCategory());
     }
 }