Hi,
after add HasManyFile Trunk to SS 2.3.2, I had these error:
[User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CustomScriptInit', only Dataobject subclasses are supported.
GET /ss/admin
Line 43 in C:\xampp\htdocs\ss\sapphire\core\model\DataObjectDecorator.php
Source
34 * @param DataObject $owner
35 */
36 function setOwner(Object $owner, $ownerBaseClass = null) {
37 if(!($owner instanceof DataObject)) {
38 user_error(sprintf(
39 "DataObjectDecorator->setOwner(): Trying to decorate an object of class '%s' with '%s',
40 only Dataobject subclasses are supported.",
41 get_class($owner), $this->class),
42 E_USER_ERROR
43 );
44 return false;
45 }
46
47 parent::setOwner($owner, $ownerBaseClass);
48 }
49
Why?