2009年12月23日星期三

Re: [fw-mvc] What 'layers' does Doctrine replace?

I think you can see the doctrine record classes like the 'Default_Model_Guestbook' classes, while the mapper should use Doctrine to retrieve data.
Best Regards,  Pieter Kokx PHP Developer Zend Framework developer 


Abraham Block schreef:
Doctrine replaces the persistence layer. 
On Wed, Dec 23, 2009 at 7:25 AM, Colin Johnson <colin.johnson@kickfinish.com> wrote:

Hi

I am contemplating using Doctrine for my next project.  Would anyone be able
to provide any advice on where it should sit in the architecture.  If I take
the Zend Framework quick start guide as some example code, does it replace
the data mapper code (e.g. Default_Model_GuestbookMapper) and everything
from that to the database?

So, I would create a 'Default_Model_Guestbook' class which uses Doctrine to
'set' and 'get' data on the database?

Thanks, in advance for any help.

Colin

--
View this message in context: http://n4.nabble.com/What-layers-does-Doctrine-replace-tp977734p977734.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: