On May 18, 2010, at 10:31 PM, Daniel Pittman wrote:

> Kate Yoak <[email protected]> writes:
> 
>> I am using an ORM, which creates methods for my class using globs, in place.
>> 
>> e.g.  __PACKAGE__->has_a('foo'...);
>> 
>> now I have a foo() method defined in my namespace.
> 
> Is that implemented using __PACKAGE__->meta->add_method, or through some other
> path?  Without knowing that it is hard to see how that might interact.
> 
> (Incidentally, are you sure you don't want to use moose-like syntax sugar for
> the has_a operation, for consistency?)
> 
>        Daniel
> 

I'd love to use Moose-like syntax sugar.  Unfortunately, at this stage there is 
not yet (to my knowledge) a Moosey ORM.  I understand, DBIx::Class is planning 
on one. Rose::DB::Object is nearly completely incompatible with Moose.  So for 
the moment, I have chosen to stick with Class::DBI which, though outdated, is 
extremely simple and straight-forward - and more importantly, I know inside and 
out, and have a lot of custom code making it behave just-so.  :-)  The only 
downside, is I keep feeling the need to defend myself every time I mention it!

Anyone doing anything pretty with Moose & ORMs?

Reply via email to