|
Re: Best practices in a thin-controller application: msg#00136php.zend.framework.mvc
Hi Adam, Adam Jensen wrote: See why it's helpful to be able to construct the Travel_Trip object The more you want your domain objects to be ignorant of the database storage, the more you're going to need a separating layer, such as a Data Mapper [1], to isolate the dependencies. It's a classic trade-off: the simplicity of directly modeling the table structure conflicts with the flexibility and expressiveness of "pure" objects. You just have to pick a comfortable point on that continuum for your application. :) [1] http://martinfowler.com/eaaCatalog/dataMapper.html Regards, Bryce Lohr |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Zend_Test: 00136, Steven Brown |
|---|---|
| Next by Date: | Re: Zend_Test: 00136, Емил Иванов / Emil Ivanov |
| Previous by Thread: | Re: Best practices in a thin-controller applicationi: 00136, Adam Jensen |
| Next by Thread: | Re: Best practices in a thin-controller application: 00136, Bryce Lohr |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |