public function updateUserData(Data $data, $flush = true)
    {
        $this->em->persist($data);
        if($flush){
            $this->em->flush();
        }

        //return array with sf validator errors
        return new \Symfony\Component\Validator\ConstraintViolationList();
    }