From d38a27eeadfd2a6cd6ddaf8ae2411779b126a758 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 17:43:33 +0200 Subject: [PATCH] #2783 --- src/app/Magic/Models/CubistMagicModelAbstract.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/Magic/Models/CubistMagicModelAbstract.php b/src/app/Magic/Models/CubistMagicModelAbstract.php index 717d92d..1642fd0 100644 --- a/src/app/Magic/Models/CubistMagicModelAbstract.php +++ b/src/app/Magic/Models/CubistMagicModelAbstract.php @@ -32,16 +32,11 @@ class CubistMagicModelAbstract extends Model public function __construct(array $attributes = []) { - $this->__attributes = $attributes; - $this->init(); - } - - protected function init() - { + $this->setFields(); $this->bootIfNotBooted(); $this->initializeTraits(); $this->syncOriginal(); - $this->fill($this->__attributes); + $this->fill($attributes); } public function getOption($key, $default = null) -- 2.39.5