public function saveItem(array $values, Item $item)
{
if (array_key_exists('caption', $values)) {
$item->setCaption($values['caption']);
}
if (array_key_exists('coords', $values)) {
$item->setCoords($values['coords']);
}
if (!empty($values['url'])) {
$item->setVideoUrl($values['url']);
}
$this->orm->flush($item);
}