Skip to content

Commit

Permalink
fixes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
mootensai committed Oct 18, 2017
1 parent 197a66a commit 8149499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RelationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8149499

Please sign in to comment.