From 51c88e2020bfc9e05649a484598cb442ae427f2a Mon Sep 17 00:00:00 2001 From: romanb Date: Sat, 15 Dec 2007 19:19:31 +0000 Subject: [PATCH] Merged 3405 (Fixed #626) from 1.0 branch. --- lib/Doctrine/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index f64fc762e..dfde49a5d 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1130,7 +1130,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable $id = is_array($id) ? array_values($id) : array($id); return $this->createQuery() - ->where(implode(' = ? AND ', $this->getIdentifierColumnNames()) . ' = ?') + ->where(implode(' = ? AND ', (array) $this->getIdentifier()) . ' = ?') ->fetchOne($id, $hydrationMode); }