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.

Archive /

Our old forums are still available as a read-only archive.

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

many_many question


Go to End


1047 Views

Avatar
zyko

Community Member, 66 Posts

21 April 2008 at 11:27pm

Edited: 21/04/2008 11:28pm

Hi dear SilverStrip Team,

I've an question abou many_many
as shown in the Project -> Module relation
in the Silverstipe Sample 'Stundent'
http://doc.silverstripe.com/doku.php?id=tutorial:5-dataobject-relationship-management

Is the additionaly 'belongs_many_many' mandatory
on the Module end of the relation?
Doest saphire need it to do all things right?
The 'table' name 'Project_Modules' comes out of the many_many, so things should be
on the way...

I'm asking because i've got situations where i don't need these 'backways'.

Will things go right (also in ComplexForms) if i don't specify the 'belongs_many_many'
on the other end?

Would be nice to have any suggestions

greetings
Helmut