/**
* Returns a column to property mapping for the storage table.
*
* @return void
*/
protected function getPropertyMapping()
{
$propertyMap = parent::getPropertyMapping();
$propertyMap['has_controller'] = array('name' => 'hasController', 'cast' => function ($val) {
return (bool) $val;
});
$propertyMap['is_autoplay'] = array('name' => 'autoplay', 'cast' => function ($val) {
return (bool) $val;
});
$propertyMap['is_loop'] = array('name' => 'loop', 'cast' => function ($val) {
return (bool) $val;
});
$propertyMap['width'] = array('name' => 'width', 'cast' => 'intval');
$propertyMap['height'] = array('name' => 'height', 'cast' => 'intval');
return $propertyMap;
}