mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00: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') {
|
if($this->ClassName === 'BlogEntry') {
|
||||||
$this->ClassName = 'BlogPost';
|
$this->ClassName = 'BlogPost';
|
||||||
$this->write();
|
$this->write();
|
||||||
|
if($this->isPublished()){
|
||||||
|
$this->doPublish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ class BlogMigrationTask extends MigrationTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function up() {
|
public function up() {
|
||||||
|
SS_ClassLoader::instance()->getManifest()->regenerate(false);
|
||||||
|
|
||||||
$classes = ClassInfo::implementorsOf('MigratableObject');
|
$classes = ClassInfo::implementorsOf('MigratableObject');
|
||||||
$this->message('Migrating legacy blog records');
|
$this->message('Migrating legacy blog records');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user