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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Bug in event calendar module

Go to End



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.