Fix migration
This commit is contained in:
parent
a536d88936
commit
4ab5de839e
|
@ -50,8 +50,10 @@ class BlogEntry extends BlogPost implements MigratableObject {
|
||||||
|
|
||||||
$this->PublishDate = $this->Date;
|
$this->PublishDate = $this->Date;
|
||||||
|
|
||||||
|
// If a user has subclassed BlogEntry, it should not be turned into a BlogPost.
|
||||||
if($this->ClassName === 'BlogEntry') {
|
if($this->ClassName === 'BlogEntry') {
|
||||||
$this->ClassName = 'BlogPost';
|
$this->ClassName = 'BlogPost';
|
||||||
|
$this->RecordClassName = 'BlogPost';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->write();
|
$this->write();
|
||||||
|
|
Loading…
Reference in New Issue