From 41fbfcbd80bf6915345b269ca042f80cdd197361 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 11 Dec 2013 14:28:36 -0500 Subject: [PATCH] doc fix. --- docs/guide/active-record.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/guide/active-record.md b/docs/guide/active-record.md index dc304ed..601dfb5 100644 --- a/docs/guide/active-record.md +++ b/docs/guide/active-record.md @@ -220,8 +220,7 @@ are used to model the many-one relationship and one-one relationship in a relati For example, a customer has many orders, and an order has one customer. Both methods take two parameters and return an [[ActiveRelation]] object: - - `$class`: the name of the class of the related model(s). If specified without - a namespace, the namespace of the related model class will be taken from the declaring class. + - `$class`: the name of the class of the related model(s). This should be a fully qualified class name. - `$link`: the association between columns from the two tables. This should be given as an array. The keys of the array are the names of the columns from the table associated with `$class`, while the values of the array are the names of the columns from the declaring class.