diff --git a/src/Entity.php b/src/Entity.php index 20f25550..feb98507 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -165,7 +165,8 @@ protected function getEntity() public function fill($data) { - $attributes = array(); + $attributes = array(); + if(is_array($data)) { foreach ($data as $key => $value)