1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +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 * @return mixed
*/ */
final public function enumValue($field, $index) { 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; return isset($this->options['enumMap'][$field][$index]) ? $this->options['enumMap'][$field][$index] : $index;
} }
/** /**