fix update bug/depth. Update should be deeper than just 1 level

This commit is contained in:
Dennis Eichhorn 2020-06-12 17:40:24 +02:00
parent 0cee08b087
commit 1cb038fbc2

View File

@ -1517,7 +1517,7 @@ class DataMapperAbstract implements DataMapperInterface
*
* @since 1.0.0
*/
public static function update($obj, int $relations = RelationType::ALL, int $depth = 1)
public static function update($obj, int $relations = RelationType::ALL, int $depth = 3)
{
if (!isset($obj) || self::isNullModel($obj)) {
return null;