Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » manymanycomplextablefield

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

Page: 1
Go to End
Author Topic: manymanycomplextablefield 533 Views
  • iculshaw
    avatar
    Community Member
    13 posts

    manymanycomplextablefield Link to this post

    Hi,

    I'm trying to sort out a ManyManyComplexTableField and i have it working fine if we are dealing with a current record in the database, however; if i wish to make a new record the form breaks and gives me a bad class to singleton error. I have my module set up in the way that the create a module tutorial is set up and fetch my fields for the form from my DataObjects.

       

    FATAL ERROR: singleton() Called without a class
    At line 84 in C:\wamp\www\clients\airsphere\sapphire\core\Core.php

    user_error(singleton() Called without a class,256)
    line 84 of Core.php

    singleton()
    line 636 of ComplexTableField.php

    ComplexTableField->getParentIdNameRelation(,Extra,many_many)
    line 69 of ManyManyComplexTableField.php

    ManyManyComplexTableField->getParentIdName(,Extra)
    line 35 of HasManyComplexTableField.php

    HasManyComplexTableField->__construct(Booking,Extras,Extra,Array,,,,)
    line 15 of ManyManyComplexTableField.php

    ManyManyComplexTableField->__construct(Booking,Extras,Extra,Array,)
    line 42 of Booking.php

    Can someone post me a viable solution as i need this working it's integral to a project!!!

    Thanks

  • iculshaw
    avatar
    Community Member
    13 posts

    Re: manymanycomplextablefield Link to this post

    I fixed this,

    in manymanycomplextablefield i changed $this->controller->ClassName (as it doesn't exist) to $this->controller->class

    hope this helps anyone else

    533 Views
Page: 1
Go to Top

Currently Online: cardinale, ikhwanb, spierala, RichardWGP

Welcome to our latest member: RichardWGP

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

Comments on this website? Please give feedback.