also add instance to add method
This commit is contained in:
parent
93020620a2
commit
e076aae133
1 changed files with 3 additions and 1 deletions
|
@ -54,6 +54,7 @@ abstract class AbstractSerializableModel
|
|||
public function add(): Result
|
||||
{
|
||||
$result = null;
|
||||
$instance = null;
|
||||
$data = $this->serialize();
|
||||
$baseClass = $this->getBaseClass();
|
||||
|
||||
|
@ -79,7 +80,7 @@ abstract class AbstractSerializableModel
|
|||
);
|
||||
}
|
||||
|
||||
return $this->constructResult($result);
|
||||
return $this->constructResult($instance, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -161,6 +162,7 @@ abstract class AbstractSerializableModel
|
|||
}
|
||||
|
||||
/**
|
||||
* @param mixed $baseClassInstance
|
||||
* @param mixed $result
|
||||
*
|
||||
* @return \Bitrix\Main\ORM\Data\Result
|
||||
|
|
Loading…
Add table
Reference in a new issue