Skip to content

Commit

Permalink
no bc break
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 4, 2023
1 parent 9ef7af5 commit 3bb2015
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ngrest/base/NgRestModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function extraFields()
/**
* Attach behaviors to the Active Query.
*
* Attach behaviours to every new {{\luya\admin\ngrest\base\NgRestActiveQuery}} on find() and ngRestFind().
* Attach behaviours to every new {{\luya\admin\ngrest\base\NgRestActiveQuery}} on find() but **not ngRestFind()**.
* Returns a list of behaviors that the query component should behave as.
*
* As behavior methods can be access from the inner class, use full functions can be used inside the active query.
Expand Down Expand Up @@ -546,13 +546,7 @@ public function ngRestRelations()
*/
public static function ngRestFind()
{
$config = [];

foreach (static::findActiveQueryBehaviors() as $name => $class) {
$config['as ' . $name] = $class;
}

return new NgRestActiveQuery(static::class, $config);
return new NgRestActiveQuery(static::class);
}

/**
Expand Down

0 comments on commit 3bb2015

Please sign in to comment.