Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » DataObject relationship 1-to-many ( only in SVN version, not in stable)

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

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

Page: 1
Go to End
Author Topic: 1164 Views
  • OzziNL
    Avatar
    Community Member
    37 Posts

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

    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

    1164 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.