FriendsOfSymfony/FOSUserBundle — Issue #544: overring form ProfileFormType problem
Author: Raulken
Created: 2012-02-21 15:03:26+00:00
State: open

i have correct overring form ad i have add new field

add('surname');
}
public function getName()
{
return 'acme_user_profile';
}
}

aftre i have correctly configurate service.yml:
acme_user.profile.form.type:
class: Acme\ProgettoBundle\Form\Type\ProfileFormType
arguments: [%fos_user.model.user.class%]
tags:
- { name: form.type, alias: acme_user_profile }

and config.yml:
fos_user:
/-------/
profile:
form:
type: acme_user_profile

but when i try to edit my profile:
Neither property "surname" nor method "getSurname()" nor method "isSurname()" exists in class "FOS\UserBundle\Form\Model\CheckPassword" not find the new field.....name, surname......