Fix get obj class name

This commit is contained in:
Dennis Eichhorn 2017-10-29 11:14:30 +01:00
parent 9c4596d08e
commit 6289761103

View File

@ -347,7 +347,7 @@ class DataMapperAbstract implements DataMapperInterface
self::extend(__CLASS__); self::extend(__CLASS__);
if ($obj === null || if ($obj === null ||
(is_object($obj) && strpos($className = $obj, '\Null') !== false) (is_object($obj) && strpos($className = get_class($obj), '\Null') !== false)
) { ) {
return null; return null;
} }