Skip to content

Commit 8149499

Browse files
committed
fixes #49
1 parent 197a66a commit 8149499

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RelationTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace mootensai\relation;
1111

1212
use Yii;
13-
use yii\base\ErrorException;
1413
use yii\db\ActiveQuery;
1514
use \yii\db\ActiveRecord;
1615
use \yii\db\Exception;
@@ -480,6 +479,9 @@ public function getRelationData()
480479
if (strpos($method->name, 'get') !== 0) {
481480
continue;
482481
}
482+
if($method->getNumberOfParameters() > 0) {
483+
continue;
484+
}
483485
try {
484486
$rel = call_user_func(array($this, $method->name));
485487
if ($rel instanceof ActiveQuery) {

0 commit comments

Comments
 (0)