Skip to content

Commit

Permalink
Merge branch '5.6' of github.com:analogueorm/analogue into 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiCollin committed May 4, 2018
2 parents 6a72b23 + 34ddeae commit 92e732f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,7 @@ public function toArray()
public function fill(array $attributes)
{
foreach ($attributes as $key => $attribute) {
if ($this->hasSetMutator($key)) {
$method = 'set'.$this->getMutatorMethod($key);
$this->attributes[$key] = $this->$method($attribute);
} else {
$this->attributes[$key] = $attribute;
}
$this->{$key} = $attribute;
}
}
}

0 comments on commit 92e732f

Please sign in to comment.