From: Vincent Vanwaelscappel Date: Mon, 3 Jun 2019 14:20:59 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3d39667def27c33d0a5471ff2c97d75b6b9bd473;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Magic/Models/CubistMagicAbstractModel.php b/src/app/Magic/Models/CubistMagicAbstractModel.php index 57a0c47..a24e9d6 100644 --- a/src/app/Magic/Models/CubistMagicAbstractModel.php +++ b/src/app/Magic/Models/CubistMagicAbstractModel.php @@ -274,7 +274,7 @@ class CubistMagicAbstractModel extends Model { foreach ($this->_relationships as $relationship) { /** @var $relationship Field */ - if ($method == $relationship->getAttrbute('name')) { + if ($method == $relationship->getAttribute('name')) { return $this->relationship($relationship); } }