2009年6月4日星期四

Re: [fw-mvc] Pattern / example?

Thanks for the link Jon. I'll check it out =)

On Thu, Jun 4, 2009 at 5:57 AM, Jon Lebensold<jon@lebensold.ca> wrote:
> 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).

没有评论: