Using Extension Of Cactiverecord In Model


(Maryjoy Tapar) #1

Hi guys,

I’m so confuse to use the extension of CActiveRecord in my Model while I’m using DAO and not Active Record. Now, my question is, can I still use the extension of CActiveRecord in my model even I did not use an active record. My friend said that I should use the extension of CFormModel because I’m using DAO. Please enlighten me guys.

Thank you so much.

Reply in this post is much appreciate. Cheers!


(Alirz23) #2

yes you can still use AR


(Maryjoy Tapar) #3

Can I use AR but I can’t make a complex query? right? thanks.


(Alirz23) #4

you can still make use of joins, order, group, whole lot other read up on guide

http://www.yiiframework.com/doc/guide/1.1/en/database.ar