Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
41fbfcbd
Commit
41fbfcbd
authored
Dec 11, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc fix.
parent
cd3949b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
active-record.md
docs/guide/active-record.md
+1
-2
No files found.
docs/guide/active-record.md
View file @
41fbfcbd
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment