Browse Source

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

Typo fix for onCondition example
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
98f3df5ffb
  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