hi,
I wanted to pick your brains on what people consider best practise on how to
organise SQL queries / database models in a ZF application.

The docs note the following folder:
 /application
   /models

Do people create a data model per "database object" to define what the
representation of the data object is? A data model may represent one table
(i.e. category) or more likely data across multiple tables (i.e. a user with
a user group, etc). 

Do you include the SQL statements to get, update, etc, the data to populate
this object in the same data model file - or a separate one to keep things
tidier?

Any thoughts appreciated,
Si

Reply via email to