Commit e06f0be6 authored by pookey's avatar pookey

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

parent cac04a0a
...@@ -963,6 +963,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { ...@@ -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;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment