1
0
mirror of synced 2025-01-29 19:41:45 +03:00

- not use the integer index, instead use the actual value for non emulated enums

This commit is contained in:
lsmith 2007-09-07 13:27:02 +00:00
parent 6987d11e2a
commit bbf5b62a68

View File

@ -1104,7 +1104,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
return $index;
}
if ( ! $this->conn->getAttribute(Doctrine::ATTR_USE_NATIVE_ENUM)
if (!$this->conn->getAttribute(Doctrine::ATTR_USE_NATIVE_ENUM)
&& isset($this->columns[$field]['values'][$index])
) {
return $this->columns[$field]['values'][$index];
@ -1127,7 +1127,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
if ($index === false || !$this->conn->getAttribute(Doctrine::ATTR_USE_NATIVE_ENUM)) {
return $index;
}
return ($index+1);
return $value;
}
/* getColumnCount
*