]> _ Git - cubist_cms-back.git/commitdiff
#2810
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 3 Jun 2019 14:20:59 +0000 (16:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 3 Jun 2019 14:20:59 +0000 (16:20 +0200)
src/app/Magic/Models/CubistMagicAbstractModel.php

index 57a0c47c38e08a17b96a46ba7d76bcd26a451ac6..a24e9d6014878455aca4a86f6e737fdac1d1009c 100644 (file)
@@ -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);
             }
         }