Jump to:

10929 Posts in 2613 Topics by 1809 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: 428 Views
  • MarcusDalgren
    Avatar
    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.

    428 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.