One additional question - what is the relation between 'belongs_to'
and 'might_have' etc and 'add_relationship'?  I always thought that
the first ones are only sugar for the last.  But unfortunately
'add_relationship' does not add an appropriate methods to the row
class.

I ask this because I thought that using the low level way:

The::Schema::Customer->add_relationship( "account", "The::Schema::Account",
    { "foreign.id" => "self.account_id" } );

would be the most powerful way to add the relationship with all the
needed details.

Cheers,
Zbigniew

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to