summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/DataMapper
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/SqlMap/DataMapper')
-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;