Commit 392f24a9 by Kartik Visweswaran

Typo fix for onCondition example

parent 833db337
...@@ -461,7 +461,7 @@ class User extends ActiveRecord ...@@ -461,7 +461,7 @@ class User extends ActiveRecord
{ {
public function getBooks() public function getBooks()
{ {
return $this->hasMany(Item::className(), ['owner_id' => 'id']->onCondition(['category_id' => 1]); return $this->hasMany(Item::className(), ['owner_id' => 'id'])->onCondition(['category_id' => 1]);
} }
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment