Jae (SilbinaryWolf)

So... for a project, I'd like to subclass CalendarDateTime to CustomCalendarDateTime and add versioning. But in 3.2, Versioned assumes the base class. Is this bound to change in the future?

Jae (SilbinaryWolf)

Well it might work actually. But not in the way that I'd want. It would be doing all the filtering on the PHP-side.

Jae (SilbinaryWolf)
  1. $this->AllChildren()->filter('ClassName', 'BlogPost')->filter(array('FieldThatExistsonBlogPostOnly' => true));

No. It'd fall over because "FieldThatExistsonBlogPostOnly" doesn't exist on SiteTree.

colin

@Jae (SilbinaryWolf) Can't you just use something like $this->AllChildren()->filter('ClassName', 'BlogPost'); ?

Jae (SilbinaryWolf)

Like it just feels like the correct thing to do performance wise. Also allows the user use it like this and just go $this->stageChildren()->filter(array('FieldThatExistsonBlogPostOnly' => true));