I have been been trying to figure out the best way to implement my models in my MVC framework.
When I'm creating the models its becoming a bit of a task to keep typing out long database queries.
I was wondering if there is a better way of doing it?
I have tried using the active record pattern, but keep coming up againest diffen't problems.
If I use active record I might want to add a "date_added = now()" at the end of the query, but because the data is in quotes it won't work.
I haven't found a good active record example that covers all bases for generating SQL.
My Questions:
1. Should use active record or not?
2. Is there any other design pattern I should look into that will speed up my development when querying the database?






Bookmarks