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); }