Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
@stof thanks ! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To uns

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 16:02, Michel Salib a écrit : I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? When creating a form, you can pass the /validation_group/s option (as an array of groups) to tell

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
Thanks all for help, I'll try use this solution. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to sy

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
Ok I found it here : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Constraint.php#L52 So I will be able to use it. Too bad there is not any documentation yet (or I did not find it). -- If you want to report a vulnerability issue on symfony, please send it to s

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
Hi stof, What is a validation group? I never heard of that before. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 14:34, ? a écrit : Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do this?, Or maybe I should do this in *Form* c

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 11:09, ? a écrit : How I can make required field validation only for create, and disable it on update, for example when user register, field password should not be null, but on update it should not be null only if user whant update password? Set the /required/ option on the