Commit 796c53fc authored by zYne's avatar zYne

remove getter / setter invocation from the core, getter / setter generation...

remove getter / setter invocation from the core, getter / setter generation will soon be part of Import
parent c57cf249
...@@ -702,18 +702,8 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -702,18 +702,8 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
} else { } else {
$value = $this->_data[$lower]; $value = $this->_data[$lower];
} }
}
if ($value !== self::$_null) {
$value = $this->_table->invokeGet($this, $name, $value);
if ($invoke && $name !== $this->_table->getIdentifier()) {
return $this->_table->getAttribute(Doctrine::ATTR_LISTENER)->onGetProperty($this, $name, $value);
} else {
return $value; return $value;
} }
}
if (isset($this->_id[$lower])) { if (isset($this->_id[$lower])) {
return $this->_id[$lower]; return $this->_id[$lower];
...@@ -786,12 +776,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -786,12 +776,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
} }
if ($old !== $value) { if ($old !== $value) {
$value = $this->_table->invokeSet($this, $name, $value); if ($value === null) {
$value = $this->_table->getAttribute(Doctrine::ATTR_LISTENER)->onSetProperty($this, $name, $value);
if ($value === null)
$value = self::$_null; $value = self::$_null;
}
$this->_data[$lower] = $value; $this->_data[$lower] = $value;
$this->_modified[] = $lower; $this->_modified[] = $lower;
......
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