Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Active Record And Query Builder

$
0
0
Hi
Two way to work with DB. Active Record (with CDB Criteria) way and Query builder,As reading posts/article I found that preferences always give to Active record . What is my point is for single table Active record is great But for joins It look like Query builder is more easy/optimized. For Active record first we need to set relations then after using `with` clause we get the all columns from all joined tables. Is I am missing some thing here.

Viewing all articles
Browse latest Browse all 18717

Trending Articles