Created
February 1, 2013 21:40
-
-
Save jblac/4694348 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$beg = date('Y-m-d 00:00:00', strtotime($beg)); //Fixed the bug | |
$fin = date('Y-m-d 23:59:59', strtotime($fin)); | |
$dql = "SELECT DISTINCT(u.id) AS agent_id FROM EcsTimeclockBundle:TimeClock t | |
LEFT JOIN t.noteBy u WHERE t.daydate BETWEEN :beg AND :fin AND u.employeejob = :tpe"; | |
$query = $this->em->createQuery($dql); | |
$query->setParameters(array('beg' => $beg, 'fin' => $fin, 'tpe' => $type)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment