Using Extension Of Cactiverecord In Model

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!

yes you can still use AR

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

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