1
0
mirror of synced 2025-02-21 14:43:14 +03:00

Update lib/Doctrine/ORM/Query/Expr/Base.php

This commit is contained in:
armetiz 2011-10-21 16:30:06 +03:00
parent 01f1924a89
commit baef4f735f

View File

@ -57,7 +57,7 @@ abstract class Base
public function add($arg) 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 we decide to keep Expr\Base instances, we can use this check
if ( ! is_string($arg)) { if ( ! is_string($arg)) {
$class = get_class($arg); $class = get_class($arg);