|
|
@ -8,8 +8,8 @@ trait SaveRelationsTrait |
|
|
|
public function load($data, $formName = null) |
|
|
|
public function load($data, $formName = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$loaded = parent::load($data, $formName); |
|
|
|
$loaded = parent::load($data, $formName); |
|
|
|
if ($loaded && method_exists($this, 'loadRelations')) { |
|
|
|
if ($loaded && $this->hasMethod('loadRelations')) { |
|
|
|
$this->loadRelations($data, $formName = null); |
|
|
|
$this->loadRelations($data); |
|
|
|
} |
|
|
|
} |
|
|
|
return $loaded; |
|
|
|
return $loaded; |
|
|
|
} |
|
|
|
} |
|
|
|