Difference between relationships & foreign keys?

13 views
Skip to first unread message

Alexander Karelas

unread,
May 15, 2016, 7:59:21 PM5/15/16
to Rose::DB::Object
In my declarations of table classes, I don't know when (or why) I should
declare foreign keys and when I should declare relationships.

Right now, I always declare relationships, even when my MySQL tables
have FOREIGN KEY's in their table definitions.

And it seems to have worked fine until now.

But RDBO's documentation often states foreign keys as well, so I wonder
(haven't understood) whether there's some advantage in using foreign
keys instead.
Reply all
Reply to author
Forward
0 new messages