public function setDataFromResource($data)
{
if (!empty($data)) {
$data = \Pimcore\Tool\Serialize::unserialize($data);
}
$this->id = $data["id"];
$this->type = $data["type"];
$this->poster = $data["poster"];
$this->title = $data["title"];
$this->description = $data["description"];
return $this;
}