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
8236bc8b
Commit
8236bc8b
authored
Feb 01, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc improvement.
parent
831ccca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
active-record.md
docs/guide/active-record.md
+5
-0
No files found.
docs/guide/active-record.md
View file @
8236bc8b
...
...
@@ -271,6 +271,11 @@ whose subtotal is greater than 100. To specify a different threshold value, use
$orders
=
$customer
->
getBigOrders
(
200
)
->
all
();
```
> Note: A relation method returns an instance of [[yii\db\ActiveRelation]]. If you access the relation like
an attribute, the return value will be the query result of the relation, which could be an instance of
`ActiveRecord`
,
an array of that, or null, depending the multiplicity of the relation. For example,
`$customer->orders`
returns
an array of
`Order`
objects, while
`$customer->getOrders()`
returns an
`ActiveRelation`
instance.
Relations with Pivot Table
--------------------------
...
...
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