Fixed Content Polymorphicrelation not set when creating ContentActiveRecord

This commit is contained in:
buddh4 2018-06-27 11:37:12 +02:00
parent 55302f6d38
commit 0d7926288d

View File

@ -166,6 +166,7 @@ class ContentActiveRecord extends ActiveRecord implements ContentOwner
if(!$content) {
$content = $this->initContent = new Content();
$content->setPolymorphicRelation($this);
}
if(!$this->isRelationPopulated('content')) {