summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortof <>2008-02-26 15:08:19 +0000
committertof <>2008-02-26 15:08:19 +0000
commit16915ee6b1bf07c5132a46d0ab5f0e1dd87c47fb (patch)
tree07bd7691ffda1619374531952928864103eb33d0
parent922e2cc3cb7f9b79dfb8857903522bd14fadf6e5 (diff)
Fixed TPropertyAccess::set method
-rw-r--r--framework/Data/SqlMap/DataMapper/TPropertyAccess.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
index b1444163..dc563164 100644
--- a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
+++ b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
@@ -137,7 +137,7 @@ class TPropertyAccess
else if(is_object($object))
{
$setter = 'set'.$prop;
- if(is_callable(array($object, $setter)))
+ if (method_exists($object,$setter))
$object->{$setter}($value);
else
$object->{$prop} = $value;