I liked the Bejnamin idea to create a generic component. It can make a better improvement of ZF.
I agree it is a complex issue and it's hard to implement properly. But I believe it would be a good gain for ZF.
thanks again for your feedback ;-) .
My best,
Fábio Locatelli
keith Pope escreveu:
2009/6/10 Fábio Locatelli <flocatelli@gmail.com>:Hi everybody! I am new on this list. I am enjoying it so far. I was passing by the official Zend Quick start to see whats new and I liked the idea of Data Mapper introduced by Ralph Schindler. Ralph made a good job introducing this pattern for new users. I confess I was expecting ZF would implement this. I found another good article at google, http://blog.tekerson.com/2008/12/17/data-mapper-pattern-in-php and http://akrabat.com/2008/12/13/on-models-in-a-zend-framework-application/ I thought data mapper very interesting I intend to include it at our next projects. Anyway! Does someone have implement data mapper as a abstract or generic class and wants to share?A data mapper is actually quite complex to implement properly, generally it is used along side the Domain Model pattern, which again is very hard to implement correctly, you may want to look at the data mapper proposal on the wiki http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Mapper+-+Benjamin+Eberlei As you can see when creating/using a data mapper there are many issues that need to be dealt with such as the object life cycle etc. If you are really interested in this subject I suggest reading martin fowlers patterns of enterprise architecture book and domain driven design by eric evans...My Best, Fábio Locatelli
没有评论:
发表评论