Browse Source

Fixes `SaveRelationsTrait::load` method

tags/1.5.0
leandrogehlen 6 years ago
parent
commit
38b55eb31e
  1. 4
      src/SaveRelationsTrait.php

4
src/SaveRelationsTrait.php

@ -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;
} }

Loading…
Cancel
Save