Thank you both for your replys they're very much appreciated. I am still
however having some difficulty in understanding the model and would be very
greatful if you could look at the following simple example and let me know
where im going wrong.

I am about to build a simple site where users can add posts.

At the moment my approach would be to first look at the nouns and create
database tables based on those nouns so a post table and user table.

To build the model I would then create a user class, users class, post class
and posts class (just because of my current understanding based on ror and
zf tutorials).

It seems this process breaks down when you start to write complicated
queries which bring back data from multiple tables because it is not clear
where in the model the queries would be stored. Plus bills posts has seemed
to put a nail in the coffin of that approach.

Can anyone explain to me or show me somewhere that explains on a very high
level for a beginner how the model fits into a system and how one should
think about it when designing an application.

For example should the model be designed at the same time the database is
designed?

Again any help would be greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/Newbie-quesiton---How-do-queries-that-join-multiple-tables-fit-into-the-model-in-the-MVC-tp20919944p20960788.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to