diff --git a/RelationTrait.php b/RelationTrait.php index 16b9801..e3c9aa6 100644 --- a/RelationTrait.php +++ b/RelationTrait.php @@ -10,7 +10,6 @@ namespace mootensai\relation; use Yii; -use yii\base\ErrorException; use yii\db\ActiveQuery; use \yii\db\ActiveRecord; use \yii\db\Exception; @@ -480,6 +479,9 @@ public function getRelationData() if (strpos($method->name, 'get') !== 0) { continue; } + if($method->getNumberOfParameters() > 0) { + continue; + } try { $rel = call_user_func(array($this, $method->name)); if ($rel instanceof ActiveQuery) {