Zbigniew Lukasiak wrote:
> 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.
It does, you're just looking at the wrong one. Here is the rough chain
of events:
::Relationship::HasMany::has_many()
-> ::ResultSourceProxy::add_relationship()
-> ::ResultSource::add_relationship()
-> ::Relationship::ProxyMethods::register_relationship()
-> ::Relationship::Accessor::register_relationship()
-> ::Relationship::Accessor::add_relationship_accessor()
_______________________________________________
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]