Created
June 14, 2012 16:28
-
-
Save adrienbrault/2931326 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
| // On utilise toujours ca .... | |
| try { | |
| $result = $qb->getQuery()->getSingleResult(); | |
| } catch (NoResultException $e) { | |
| $result = null; | |
| } | |
| // Mais magie, magie, cette méthode non documentée fait la meme chose! | |
| $result = $qb->getQuery()->getOneOrNullResult(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment