Commit 1727a3e9 authored by chtito's avatar chtito

fix for #207

parent 63d84e18
...@@ -979,7 +979,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { ...@@ -979,7 +979,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
* @param mixed $value * @param mixed $value
*/ */
public function invokeSet(Doctrine_Record $record, $name, $value) { public function invokeSet(Doctrine_Record $record, $name, $value) {
if( ! ($this->getAttribute(Doctrine::ATTR_ACCESSORS) | Doctrine::ACCESSOR_SET)) if( ! ($this->getAttribute(Doctrine::ATTR_ACCESSORS) & Doctrine::ACCESSOR_SET))
return $value; return $value;
$method = 'set' . $name; $method = 'set' . $name;
...@@ -996,7 +996,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { ...@@ -996,7 +996,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
* @param mixed $value * @param mixed $value
*/ */
public function invokeGet(Doctrine_Record $record, $name, $value) { public function invokeGet(Doctrine_Record $record, $name, $value) {
if( ! ($this->getAttribute(Doctrine::ATTR_ACCESSORS) | Doctrine::ACCESSOR_GET)) if( ! ($this->getAttribute(Doctrine::ATTR_ACCESSORS) & Doctrine::ACCESSOR_GET))
return $value; return $value;
$method = 'get' . $name; $method = 'get' . $name;
......
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