Object Relational Mapping

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Object Relational Mapping

Post by Maugrim_The_Reaper »

I've been running through a few projects recently and became fascinated with getting rid of large tracts of repetitive code. Most of it is from hand-coded objects to handle row data using a Data Access Object to CRUD Transfer Objects (glorified arrays with an API) to and from the database.

The problem is that a) they're hand coded, b) they're fairly simplistic, and c) I hate repetitive coding...;)

Wondering if people would care to suggest a favourite ORM package, and how they'd contrast those against something with a little more hype...a la ActiveRecord?
Gambler
Forum Contributor
Posts: 246
Joined: Thu Dec 08, 2005 7:10 pm

Post by Gambler »

Can I convince you to try my Natural DB?

http://nengine.korsengineering.com/file ... nodes.phps

Well, it's not exactly an ORM package, but it solves similar problems. (Manipulating data without writing SQL.)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I like the Java Persistence approach. If i understand Fowler a bit he would categorize it under the "Data Mapper" tools.

Most solutions are mentionned at http://wiki.cc/php/Object_Relational_Mapping. Last time i checked the one that most ressembled java persistence was ezpdo.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

ez component?

I'll check it out, thanks.
Post Reply