Merged 3405 (Fixed #626) from 1.0 branch.
This commit is contained in:
parent
4516678f5c
commit
51c88e2020
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user