Just for fun, I thought I’d have a go at implementing a little Object Relational Mapper in PHP.

It hasn’t got many features, but it’s not a bad start and only ~200 lines of code.

Check out the full source here to see how it actually works.

As always, feedback is welcome. :-)