Commit 98f3df5f by Alexander Makarov

Merge pull request #1890 from kartik-v/patch-11

Typo fix for onCondition example
parents 833db337 392f24a9
......@@ -461,7 +461,7 @@ class User extends ActiveRecord
{
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