mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Forced a regeneration of class manifest. The call to BlogEntry::get() returned an empty set without it
This commit is contained in:
parent
06c6bd4889
commit
71aec163b5
@ -52,6 +52,9 @@ class BlogEntry extends BlogPost implements MigratableObject {
|
||||
if($this->ClassName === 'BlogEntry') {
|
||||
$this->ClassName = 'BlogPost';
|
||||
$this->write();
|
||||
if($this->isPublished()){
|
||||
$this->doPublish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,8 @@ class BlogMigrationTask extends MigrationTask {
|
||||
}
|
||||
|
||||
public function up() {
|
||||
SS_ClassLoader::instance()->getManifest()->regenerate(false);
|
||||
|
||||
$classes = ClassInfo::implementorsOf('MigratableObject');
|
||||
$this->message('Migrating legacy blog records');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user