1
0
mirror of synced 2024-12-13 14:56:01 +03:00

pookey: sorry, I do not understand this fix, but i needed it

This commit is contained in:
pookey 2006-10-25 05:46:06 +00:00
parent cac04a0ac0
commit e06f0be65d

View File

@ -963,6 +963,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
* @return mixed
*/
final public function enumValue($field, $index) {
if ($index instanceof Doctrine_Null)
{
return $index;
}
return isset($this->options['enumMap'][$field][$index]) ? $this->options['enumMap'][$field][$index] : $index;
}
/**