Guide
API
Wiki
Forum
Community
Live Chat
Extensions
Resources
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
What is Yii?
Release Cycle
News
License
Team
Official Logos and Design
Login
Yii Framework Wiki
Write
new article
Categories
All
Tips
342
How-tos
445
Tutorials
289
FAQs
45
Others
56
Popular Tags
All
yii2
90
CGridView
69
AJAX
57
Yii
48
tutorial
39
model
31
i18n
30
authentication
28
security
26
database
24
Recent Comments
E.Alamo
on
PHP built-in server integration
a month ago
coderevolts
on
Implementing cron jobs with Yii
2 months ago
Néstor Acevedo
on
Filter & Sort by calculated/related fields in GridView Yii 2.0
5 months ago
Kamil Pomykała
on
JWT authentication tutorial
10 months ago
JQL
on
How to add a DropDown Language Picker (i18n) to the Menu
10 months ago
Difference between #
2
and #
3
of
Named scope - Get orphan AR without losing primary key
Changes
Title
changed
Named scope - Get orphan AR without lo
o
sing primary key
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
unchanged
[...]
self::getDbCriteria()->mergeWith( $criteria , $useAnd );
return $this;
}
```
0
0
2
followers
Viewed:
9 721 times
Version:
1.1
Category:
Tutorials
Tags:
Written by:
cma
Last updated by:
Steve Friedl
Created on:
Jul 28, 2010
Last updated:
13 years ago
Update Article
Revert to #2
|
Revert to #3
Revisions
View all history
13 years ago
by
Steve Friedl
Fixed typo in title
14 years ago
by
jonah
fixed highlighting
14 years ago
by
cma
initial version