From: Vincent Vanwaelscappel Date: Wed, 12 Jun 2019 13:58:19 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cec13b7538f4d64b314568c0f7bf7a16c8528d7e;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Magic/Fields/Model.php b/src/app/Magic/Fields/Model.php index da06a40..33cef15 100644 --- a/src/app/Magic/Fields/Model.php +++ b/src/app/Magic/Fields/Model.php @@ -29,6 +29,6 @@ class Model extends Field $modelClass = $this->getAttribute('optionsmodel'); $inst = new $modelClass(); - return $modelClass::all()->pluck($this->getAttribute('attribute'), $inst->getPrimaryKey()); + return $modelClass::all()->pluck($this->getAttribute('attribute'), $inst->getPrimaryKey())->toArray(); } }