Browse Source

Typo fix for onCondition example

tags/2.0.0-beta
Kartik Visweswaran 11 years ago
parent
commit
392f24a99b
  1. 2
      docs/guide/active-record.md

2
docs/guide/active-record.md

@ -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]);
}
}
```

Loading…
Cancel
Save