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

DataObject relationship 1-to-many ( only in SVN version, not in stable)


Go to End


1441 Views

Avatar
OzziNL

Community Member, 37 Posts

19 December 2007 at 5:57am

Edited: 04/01/2008 9:38am

When running the code from tutorial 5 and adding a student to a new mentor object I get:

ERROR:Error 512: ComplexTableField::DetailForm() Cannot automatically determine 'has-one'-relationship to parent, please use setParentClass() to set it manually At l266 in /usr/home/inventheon/www/sapphire/forms/ComplexTableField.php
Notice: Undefined index: line in /usr/home/inventheon/www/sapphire/core/Debug.php on line 247

Also after adding:

$tablefield->setParentClass('Student');
it gives all kinds of
errors....

I hope this will be fixes cause it's major functionality for more complex sites IMHO...fo