From e990c9e4f80d4fbc04944ecfe9d826ced0b701b7 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 22 Apr 2007 11:06:19 +0000 Subject: [PATCH] --- lib/Doctrine/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 3818de01c..896e50010 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -341,7 +341,9 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { $e = explode('.', $arg); - if(count($e) > 1) { + if (is_numeric($arg)) { + $arglist[] = $arg; + } elseif (count($e) > 1) { //$tableAlias = $this->getTableAlias($e[0]); $table = $this->tables[$tableAlias];