public function setRenditionsLabels(array $labels)
{
$renditions = $this->getRenditions();
foreach ($labels as $renditionName => $label) {
if (array_key_exists($renditionName, $renditions)) {
$renditions[$renditionName]->setLabel($label);
}
}
$this->orm->flush();
$this->renditions = null;
}