1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Merge pull request #165 from armetiz/patch-3

Update lib/Doctrine/ORM/Query/Expr/Base.php
This commit is contained in:
Benjamin Eberlei 2011-10-24 03:42:04 -07:00
commit a02b0c9269

View File

@ -57,7 +57,7 @@ abstract class Base
public function add($arg)
{
if ( $arg !== null || ($arg instanceof self && $arg->count() > 0)) {
if ( $arg !== null ) {
// If we decide to keep Expr\Base instances, we can use this check
if ( ! is_string($arg)) {
$class = get_class($arg);