How to do a foreign key with cascades
Right now I'm doing something like this:
I would like to name the key that is generated here. I understand that I can use the
foreignKey()
to name the key. However, I don't know how to handle the cascades if I do the foreign key using that function rather than using references()
.
Can anybody give me a pointer?2 Replies