Problemi setting owner media
Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
@@ -25,6 +25,9 @@ class MediaModel extends Model implements MediaInterface{
|
||||
public function __construct($saveableObject = null){
|
||||
parent::__construct($saveableObject);
|
||||
$this->setMediaRenderer();
|
||||
if (!$this->hasProperty("owner")){
|
||||
$this->owner = new stdClass();
|
||||
}
|
||||
}
|
||||
|
||||
public function __set($attr,$value){
|
||||
|
||||
Reference in New Issue
Block a user