private function getThumbnailUri(Thumbnail $thumb)
{
if ($thumb->getFileName() == null) {
return false;
}
return $this->app['url_generator']->generate('thumb', ['width' => $thumb->getWidth(), 'height' => $thumb->getHeight(), 'action' => $thumb->getScale(), 'file' => $thumb->getFileName()]);
}