[Dbix-class] RFC: DBIx::Class::Sweet

Nilson Santos Figueiredo Junior acid06 at gmail.com
Mon Apr 3 20:52:27 CEST 2006


On 4/3/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> I don't see why I need to do that. If the f_class' PK is (id_one, id_two) I'm
> happy for belongs_to 'foo' => 'Foo' to create foo_id_one and foo_id_two columns.

I really can't think of any better convention than this suggestion of
yours. However you'd still need to have syntax for manually specifying
them.

> I also want to have the 'reverse' attr on a belongs_to rather than explicit
> has_many calls - saves us having circular loading failure issues and means
> that the parent class can be re-used *without* the child class if suitable.

Yes, this makes sense. But how is this related to the previous
comment? (Or it is not?)

-Nilson Santos F. Jr.



More information about the Dbix-class mailing list