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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Bug in event calendar module


Go to End


696 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

5 January 2011 at 3:33am

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.