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.
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.