mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-22 06:18:41 +00:00
allow scalar delete
This commit is contained in:
parent
fdff9da488
commit
ae87bc9ab5
|
|
@ -1364,6 +1364,10 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
{
|
||||
self::extend(__CLASS__);
|
||||
|
||||
if (is_scalar($obj)) {
|
||||
$obj = static::get($obj);
|
||||
}
|
||||
|
||||
$reflectionClass = new \ReflectionClass($obj);
|
||||
$objId = self::getObjectId($obj, $reflectionClass);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user