protected function getFailureFunction(User $user)
{
$that = $this;
return function ($form, Addressbook $addressbook, $isNew) use($user, $that) {
return $this->render('BaikalFrontendBundle:Addressbook:form.html.twig', array('form' => $form->createView(), 'user' => $user, 'addressbook' => $addressbook));
};
}