From 1727a3e9c1be46b2a5c121a05a12e377f5ab6dfa Mon Sep 17 00:00:00 2001 From: chtito Date: Mon, 6 Nov 2006 07:08:33 +0000 Subject: [PATCH] fix for #207 --- lib/Doctrine/Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 46f528a86..ae41e40e3 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -979,7 +979,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { * @param mixed $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; $method = 'set' . $name; @@ -996,7 +996,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { * @param mixed $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; $method = 'get' . $name;