Last active
February 3, 2018 18:00
-
-
Save nixon1333/7eaaf5333d323b829c1ce1a5e728fdf5 to your computer and use it in GitHub Desktop.
symfomy2 custom query builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$repository = $this->getDoctrine()->getManager()->getRepository('ApplicationBundle:AccWorkloadEntry'); | |
$query = $repository->createQueryBuilder('c')->where("c.companyId = ".$this->CompanyID); | |
$query->andWhere("c.status ='1'"); | |
$query->andWhere("c.reportDate between '".$dateFrom ."' and '".$dateTo."'"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment