Revert "Fix migration task"

This commit is contained in:
Damian Mooyman 2015-05-26 12:26:22 +12:00
parent 9244b509b6
commit a536d88936

View File

@ -50,9 +50,10 @@ class BlogEntry extends BlogPost implements MigratableObject {
$this->PublishDate = $this->Date;
$this->ClassName = 'BlogPost';
$this->RecordClassName = 'BlogPost';
if($this->ClassName === 'BlogEntry') {
$this->ClassName = 'BlogPost';
}
$this->write();
}