Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Bug in event calendar module

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 430 Views
  • MarcusDalgren
    Community Member
    288 Posts

    Bug in event calendar module Link to this post

    If you extend CalendarEvent and add your own $has_many things break because CalendarEvent does

    $has_manys = eval("return $class::\$has_many;");

    which doesn't take the class hierarchy into account. Using

    $has_manys = Object::combined_static($class, "has_many");

    instead fixes this.

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.