private function modifyCollection($data, $user)
{
$collection = $this->getById($data['id'], $data['locale']);
$data['changer'] = $user;
$data['changed'] = new \DateTime();
$collection = $this->setDataToCollection($collection, $data);
$collectionEntity = $collection->getEntity();
$this->em->persist($collectionEntity);
$this->em->flush();
return $collection;
}