2009年6月4日星期四

Re: [fw-mvc] Pattern / example?

There's usually a bit of confusion between a domain model (which is a model that has business rules or at least some notion of what you're trying to persist) and the record set model (which is what the Active Record pattern facilitates). The two are separate concerns and should be handled in different classes. After looking at the latest quick start, you can see them doing this:

http://framework.zend.com/docs/quickstart/create-a-model-and-database-table

with the DataMapper bridging the gap between the Model (domain model) and the object representation of the database table (the Data Table Gateway).


On Thu, Jun 4, 2009 at 4:07 AM, monk.e.boy <john.glazebrook@guava.com> wrote:



Jonathan Lebensold wrote:
>
> ... what people typically call a Model (which BTW is a misnomer for
> so many reasons).

Care to elaborate on this? I just read a MVC tutorial where the author said
he was going rename Model with Classes as model is only part of the model
layer.

monk.e.boy

--
View this message in context: http://www.nabble.com/Pattern---example--tp23859000p23865552.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: