Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Foreign key constraints


Go to End


2 Posts   1044 Views

Avatar
Schippie

Community Member, 38 Posts

4 October 2014 at 3:02am

Edited: 04/10/2014 3:03am

Hello, i have probably a very silly question but i decided to ask it anyways.
I noticed that the has_one relations do not auto generate a foreign key constraint http://dev.mysql.com/doc/refman/5.6/en/innodb-foreign-key-constraints.html and their seems to be no way to force this.
Does anybody know if their are options build into Silverstripe to achieve this or?

Avatar
Schippie

Community Member, 38 Posts

8 October 2014 at 1:29am

Anybody know if this is possible?