pookey: sorry, I do not understand this fix, but i needed it
This commit is contained in:
parent
cac04a0ac0
commit
e06f0be65d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue