diff --git a/lib/Doctrine/ORM/Query.php b/lib/Doctrine/ORM/Query.php index a7c6f852d..e3f23cc6b 100644 --- a/lib/Doctrine/ORM/Query.php +++ b/lib/Doctrine/ORM/Query.php @@ -561,7 +561,7 @@ final class Query extends AbstractQuery */ public function contains($dql) { - return stripos($this->getDQL(), $dql) === false ? false : true; + return stripos($this->getDQL(), $dql) !== false; } /**