1
0
mirror of synced 2024-12-13 06:46:03 +03:00

Merged 3405 (Fixed #626) from 1.0 branch.

This commit is contained in:
romanb 2007-12-15 19:19:31 +00:00
parent 4516678f5c
commit 51c88e2020

View File

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