Difference between #12 and #13 of
Relational Query - Lazy Loading and Eager Loading in Yii 1.1 / with and together

Revision #13 has been created by softark on Jan 9, 2016, 6:52:59 AM with the memo:

link title updated
« previous (#12)

Changes

Title unchanged

Relational Query - Lazy Loading and Eager Loading in Yii 1.1 / with and together

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

relational query, eager loading, lazy loading, with, together

Content changed

[...]
What if you want both of them at the same time? There seems to be no easy answer to it.

The following are the examples of the effort to answer it.

- [wiki - Drills : Search by a HAS_MANY relation
 in Yii 1.1](http://www.yiiframework.com/wiki/428/drills-search-by-a-has_many-relation "Drills : Search by a HAS_MANY relation in Yii 1.1")
- [wiki - Displaying, sorting and filtering HasMany & ManyMany relations in CGridView](http://www.yiiframework.com/wiki/385/displaying-sorting-and-filtering-hasmany-manymany-relations-in-cgridview "Displaying, sorting and filtering HasMany & ManyMany relations in CGridView")
[...]
"Single Query" and "Multiple Query" are the terms that I molded myself. They are not from the official documentation. But bearing them in mind, you will find things get easier to comprehend.

And one more thing ... this article is Yii 1.1.x specific. Yii 2 doesn't have Single Query Eager Loading.
 Degraded? Never! It's cleaner and more effective than in Yii 1.1. - [wiki - Relational Query - Lazy Loading and Eager Loading in Yii 2.0](http://www.yiiframework.com/wiki/834/r "Relational-q Query-eager-loading-in-yii-2-0/ "Relational Query - - Lazy Loading and Eager Loading in Yii 2.0")
9 0
22 followers
Viewed: 59 588 times
Version: 1.1
Category: Tutorials
Written by: softark
Last updated by: softark
Created on: Jul 6, 2013
Last updated: 8 years ago
Update Article

Revisions

View all history