Commit a4ae926a authored by zYne's avatar zYne

added isIdentifier()

parent a01ed064
......@@ -334,6 +334,12 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
}
}
public function isIdentifier($identifier)
{
return ($identifier === $this->_identifier ||
in_array($identifier, (array) $this->_identifier));
}
public function getMethodOwner($method)
{
return (isset($this->_invokedMethods[$method])) ?
......@@ -1372,7 +1378,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
{
if ($value === self::$_null) {
return self::$_null;
} else if ($value === null) {
} elseif ($value === null) {
return null;
} else {
$type = $this->getTypeOf($field);
......
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