allow scalar delete

This commit is contained in:
Dennis Eichhorn 2018-02-18 10:47:28 +01:00
parent fdff9da488
commit ae87bc9ab5

View File

@ -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);