1
0
mirror of synced 2025-01-18 22:41:43 +03:00

remove getter / setter invocation from the core, getter / setter generation will soon be part of Import

This commit is contained in:
zYne 2007-05-23 20:26:21 +00:00
parent c57cf249c6
commit 796c53fc87

View File

@ -702,17 +702,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
} else {
$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])) {
@ -786,13 +776,10 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
}
if ($old !== $value) {
$value = $this->_table->invokeSet($this, $name, $value);
$value = $this->_table->getAttribute(Doctrine::ATTR_LISTENER)->onSetProperty($this, $name, $value);
if ($value === null)
if ($value === null) {
$value = self::$_null;
}
$this->_data[$lower] = $value;
$this->_modified[] = $lower;
switch ($this->_state) {