On 10/20/06, Jess Robinson <[EMAIL PROTECTED]> wrote: > belongs_to means: a field (or fields) in THIS table is a foreign key > (contains the primary key of) THAT other table. > > has_one means: there is a row in THAT table which contains THIS tables > primary key.
Thank you for that excellent explanation! I now get it. :-) And to echo what Matt said, you can always change which columns are used as the keys using explicit join conditions. The direction was the important part for me. Drew -- ---------------------------------------------------------------- Drew Taylor * Web development & consulting Email: [EMAIL PROTECTED] * Site implementation & hosting Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres ---------------------------------------------------------------- _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
