mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
fix update bug/depth. Update should be deeper than just 1 level
This commit is contained in:
parent
0cee08b087
commit
1cb038fbc2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user