mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 13:28:39 +00:00
Fix get obj class name
This commit is contained in:
parent
9c4596d08e
commit
6289761103
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user