<p><a href="http://pear.php.net/manual/en/package.database.db-dataobject.php" rel="nofollow noreferrer">DB_DataObject</a> does not appear to be ActiveRecord because you do not necessarily store business logic in the "table" classes. It seems more like Table Data Gateway or Row Data Gateway, but I really cannot tell. What I need is good ORM layer that we can use with DataMapper and a DomainModel. Any ideas?</p>

[{'answer_id': 38802, 'author': 'Till', 'author_id': 2859, 'author_profile': 'https://Stackoverflow.com/users/2859', 'pm_score': 3, 'selected': True, 'text': '<p>Follow <a href="http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.php" rel="nofollow noreferrer">this link</a> to read what DB_DO is. In a nutshell, it doesn\'t implement a specific pattern, it just aims to provide a common interface. The idea is to not rebuild the same basic code in each project.</p>\n\n<p>As for an ORM, I\'d recommend <a href="http://phpdoctrine.org/" rel="nofollow noreferrer">Doctrine</a>. It implements ActiveRecord.</p>\n'}, {'answer_id': 128338, 'author': 'Unlabeled Meat', 'author_id': 20291, 'author_profile': 'https://Stackoverflow.com/users/20291', 'pm_score': 1, 'selected': False, 'text': '<p>It sounds like what you\'re looking for is something like <a href="http://ibatis.apache.org/" rel="nofollow noreferrer">IBatis</a> for PHP. Sadly, this doesn\'t yet exist. I\'ve actually written some custom DataMapper stuff based on PDO for the current application I\'m working on to achieve a persistence ignorant domain layer. It\'s definitely more work to develop and maintain though, so I would suggest if at all possible, go with an existing data layer implementation like Doctrine for most of your needs.</p>\n'}]
['https://Stackoverflow.com/questions/38763', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/577/']