-
-
Save hrshadhin/540b9a6fb3a91e92fde8ab004d290cdd 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