1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2006-10-24 17:24:58 +00:00
parent 76b3f2c999
commit cac04a0ac0

View File

@ -371,6 +371,13 @@ abstract class Doctrine_Hydrate extends Doctrine_Access {
if(empty($row))
continue;
foreach($this->tables as $k => $t) {
if ( ! strcasecmp($key, $k))
$key = $k;
}
if ( !isset($this->tables[$key]) )
throw new Doctrine_Exception("No table named $key found.");
$ids = $this->tables[$key]->getIdentifier();
$name = $key;