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.

Archive /

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

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

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


Reply


1203 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