Fixes `SaveRelationsTrait::load` method
@ -8,8 +8,8 @@ trait SaveRelationsTrait
public function load($data, $formName = null)
{
$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;