I want to use the database access objects to access a table in my database instead of doing active record since that takes a long time to load. if i use database access objets instead (calling createCommand, query, execute, etc), do i still need to create a model class for the table? if so what would be the parent class of this model class?
-
activerecord doesn’t take that long to load
-
activerecord is the same as "model"
-
creating an activerecord after using DAO would be slower than using activerecord in the first place
-
google "premature optimization is the root of all evil"
hm, what kind of stuff are you doing that active record takes a long time to load )?
You will have to use CDbDataReader::read() which will return an array of data.