atemerev has asked for the wisdom of the Perl Monks concerning the following question:

Is there any ORM (or ActiveRecord-style library) which can be used seamlessly with Moose objects?

In a related matter, how to get all declared attributes for an arbitrary Moose object?

Replies are listed 'Best First'.
Re: ORM for Moose
by stvn (Monsignor) on Mar 26, 2008 at 21:53 UTC

    As zby said, the next major DBIx::Class release will be (re)written in Moose. Although it should be noted that DBIx::Class and Moose play pretty well together. In the meantime, there is Fey::ORM which is still very young and looks promising.

    -stvn
Re: ORM for Moose
by Fletch (Bishop) on Mar 26, 2008 at 20:10 UTC

    For the second question you probably are interested in either get_attribute_list or compute_all_applicable_attributes in the Class::MOP::Class documentation (depending on if you want to look up the tree or not).

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Thank you, it helps.

      The cake is not a lie; basically anything will turn into a cake under 4000 degrees Kelvin.

Re: ORM for Moose
by zby (Vicar) on Mar 26, 2008 at 20:12 UTC
    I think you need to wait for 0.09 version of DBIx::Class.