Apologies for the shopping list, but I’ve played with a few ORM-type libraries, and most are good, but none have done everything 🙂 On my next project, am hoping to find one that can do a few more things out of the box. Have you got any good suggestions?
This is what I am looking for:
-
Easily select deeply nested data.
for example, PHP Yii’s CActiveRecord can do something like this: Contact::model()->with(‘phone_numbers’, ‘addresses’, ‘createdBy.user.company’)->findAll();
-
Easily create/return deeply nested JSON from the database or ORM
-
Easily load deeply nested JSON data, validate it, and save it to the database correctly
-
Supports optimistic concurrency control
-
Handles multi-tenant systems gracefully
Yet to find one…you need a generic way to convert to/from objects, arrays, json in and out, recursively
Yet to find one.
Doctrine or brew your own w a “version” counter on a record
Ruby ActiveRecord + Postgres