Fix depth bug

This commit is contained in:
Dennis Eichhorn 2019-05-25 11:16:10 +02:00
parent a62304baaa
commit 8f0688f46d

View File

@ -2239,7 +2239,7 @@ class DataMapperAbstract implements DataMapperInterface
$toLoad = self::getPrimaryKeysBy($value, self::getColumnByMember($ref)); $toLoad = self::getPrimaryKeysBy($value, self::getColumnByMember($ref));
} }
$obj[$value] = self::get($toLoad, $relations, $fill, --$depth); $obj[$value] = self::get($toLoad, $relations, $fill, $depth);
} }
$countResulsts = \count($obj); $countResulsts = \count($obj);