Aaron Cooper
  1. $liveRecords = Versioned::get_by_stage('SiteTree', 'Live');
Aaron Cooper

Any idea how to get a list of all published pages in the sitetree? I have this from SS3:

wmk

of course that only works if you already installed the SS4 packages to your project

wmk

yes. If the new classes are provided in a "upgrade.yml" like https://github.com/tractorcow-farm/silverstripe-fluent/blob/4.4/.upgrade.yml upgrader should upgrade your code and inject the classes.

Show 1 attachment(s)
GitHub  
tractorcow-farm/silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees. - tractorcow-farm/silverstripe-fluent

Hide attachment content
Mo

Rather than use SilverStripe\ORM\DataObject

Mo

For example, I have class MyObject extends DataObject

Mo

Anyone know if the upgrader module should be automatically finding namespaces of required modules?