From 392f24a99b07bb1d37850774e689fa7c93612b5f Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Sat, 11 Jan 2014 01:57:37 +0530 Subject: [PATCH] Typo fix for onCondition example --- docs/guide/active-record.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/active-record.md b/docs/guide/active-record.md index 710efdc..02d5c85 100644 --- a/docs/guide/active-record.md +++ b/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]); } } ```