tag:blogger.com,1999:blog-36547168.post2564821582196030326..comments2023-11-25T11:00:42.257+01:00Comments on Invisible to the eye: What's going on with php object-relational mappersGiorgiohttp://www.blogger.com/profile/03558287012747987157noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-36547168.post-32094615607566020222010-01-21T14:27:18.261+01:002010-01-21T14:27:18.261+01:00In php, no real generic Orms existed until 2009
A...<i>In php, no real generic Orms existed until 2009</i><br /><br />Actually, after quick research I've found two PHP projects implementing data mapper pattern (at least naming this pattern):<br /><a href="http://phpdatamapper.com/" rel="nofollow">phpDataMapper</a><br /><a href="http://www.rapiddatamapper.com" rel="nofollow">Rapid Data Mapper</a><br /><br />Additionally I'm not sure about frameworks incorporating theirs own ORM layers, maybe there are some using Data Mapper as well? The only one I spotted is <a href="http://stensi.com/datamapper/index.html" rel="nofollow">Data Mapper plugin for CodeIgniter</a>.<br /><br />Haven't checked if they're good or not, just wanted to mention those for completeness.Unknownhttps://www.blogger.com/profile/17575525740024165599noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-89846651468566387152009-11-28T11:52:30.148+01:002009-11-28T11:52:30.148+01:00I looked at Torpor, but it seems that it does not ...I looked at Torpor, but it seems that it does not implement a DataMapper pattern but dynamic Active Records and a lot of magic.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-27631133700464201992009-11-27T23:00:35.449+01:002009-11-27T23:00:35.449+01:00Have you looked at Torpor PHP? It's new projec...Have you looked at <a href="http://code.google.com/p/torpor-php/" rel="nofollow">Torpor PHP</a>? It's new project that seems to share similar concepts. Author describes this project in <a href="http://devzone.zend.com/article/9880-PHP-Abstract-Podcast-Episode-46-Paul-Tomlinson-on-Torpor" rel="nofollow">last PHP Abstract Podcast</a>.Adamnoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-20241370102830231242009-11-12T00:01:43.450+01:002009-11-12T00:01:43.450+01:00Noted Giorgio. Thanks for posting. I'm downloa...Noted Giorgio. Thanks for posting. I'm downloading Doctrine 2.0 now - great to hear that Doctrine 2 integration is at hand with zf.rvdavidhttps://www.blogger.com/profile/02127055593556797334noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-76832193750628890062009-11-11T21:01:00.074+01:002009-11-11T21:01:00.074+01:00Very web 2.0 list :)
However, Doctrine 2 and Pear ...Very web 2.0 list :)<br />However, Doctrine 2 and Pear 2 are in alpha, while ZF 2 does not exist yet.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-85879591712146664382009-11-11T18:11:44.096+01:002009-11-11T18:11:44.096+01:00Fantastic explanation, Giorgio.
I am really look...Fantastic explanation, Giorgio. <br /><br />I am really looking forward for mainstream PHP 5.3 and Doctrine 2.0 adoption. I am not worried about server infrastructure since I host my applications on own servers. But I would like to use Zend Framework and few libraries that aren't fully tested with PHP 5.3 yet.<br /><br />On my watch list the top items are <br />1. Zend Framework 2.0<br />2. PEAR 2.0<br />3. Doctrine 2.0Sudheerhttp://techchorus.netnoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-4049083364285374042009-11-11T17:28:48.423+01:002009-11-11T17:28:48.423+01:00I have experienced many Active Record applications...I have experienced many Active Record applications where, sooner or later, classes started to incorporate logic that should be tested. :)<br />I am not much experienced with document-oriented database but it's in my interest to continue contributing to Doctrine 2 in the future.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-36146034982466604832009-11-11T17:12:15.450+01:002009-11-11T17:12:15.450+01:00Thanks for the kudos :)
It should be noted, howev...Thanks for the kudos :)<br /><br />It should be noted, however, that ActiveRecord is far from useless. It can work very well for many simple applications where the domain model does not require any reuse and is pretty simple anyway. ActiveRecord works for many applications. Just not when you want a reusable, easily testable and persistence-independant domain model.<br /><br />Needless to say I prefer data mappers but it just has to be said that there is no "one true way" for object persistence. Just many different options.<br /><br />While we're at it, we do have plans for an object-document mapping approach with a very similar API to the Doctrine 2 ORM, the same different mapping options (annotations, xml, yaml, ...) etc.<br /><br />If you or anyone else is interested in contributing, let us (the Doctrine guys) know.Unknownhttps://www.blogger.com/profile/00439059243350222311noreply@blogger.com