Created
May 25, 2017 12:50
-
-
Save rileyrg/8052a19fce404d45aa58125a6ff3a25c 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
if (sizeof($eyeColours) == 1) { | |
$queryBuilder->where("e.name = ?0"); | |
} else { | |
/*** | |
foreach ($eyeColours as $key => $value) { | |
} | |
***/ | |
$queryBuilder->where($queryBuilder->expr()->orX( | |
$queryBuilder->expr()->eq("e.name", "?0"), | |
$queryBuilder->expr()->eq("e.name", "?1") | |
)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment