http://www.perlmonks.org?node_id=968659


in reply to Re: Search for ORM with Multi-Table-Object Support
in thread Search for ORM with Multi-Table-Object Support

Hey - that sounds like a solution. And like nearly the same use-case as mine.

As I understand you, this can even be insertable/updateable - just write back any changes to the related objects and save them back to the database.

Thank you very much - I will try it out.

  • Comment on Re^2: Search for ORM with Multi-Table-Object Support

Replies are listed 'Best First'.
Re^3: Search for ORM with Multi-Table-Object Support
by tospo (Hermit) on May 03, 2012 at 09:42 UTC
    hmm, my post got lost, anyway, I was just saying that you can definitely do that.
    You will want to provide a 'insert_xxx_object' method that knows how your object has to be broken up and issues all the create->()->create_related() calls to write them to the database. This one would go into a ResulSet class for your 'main' table (or any one of the tables that are involved in storing this object), which you may have to create first.