Commit 51c88e20 authored by romanb's avatar romanb

Merged 3405 (Fixed #626) from 1.0 branch.

parent 4516678f
...@@ -1130,7 +1130,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable ...@@ -1130,7 +1130,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$id = is_array($id) ? array_values($id) : array($id); $id = is_array($id) ? array_values($id) : array($id);
return $this->createQuery() return $this->createQuery()
->where(implode(' = ? AND ', $this->getIdentifierColumnNames()) . ' = ?') ->where(implode(' = ? AND ', (array) $this->getIdentifier()) . ' = ?')
->fetchOne($id, $hydrationMode); ->fetchOne($id, $hydrationMode);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment