Re: [symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-23 Thread Michel Salib
Most of the time this error appear because of a bad initialization of your object. It looks like you do not have any constructor, so you don't seem to initialize any collection which you should do if you have some. What is your orm mapping ? -- If you want to report a vulnerability issue on

[symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-22 Thread Michel Salib
Can you be more specific ? Also can you show us your User class (and its relations) ? -- 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

Re: [symfony-users] Request for Symfony 2 installation guide

2011-06-21 Thread Michel Salib
Fabien not the only one to write the doc (there are many other nice volontary guys). Please, don't blame him for everything. Also, I don't agree that the Symfony doc should document the wamp installation and configuration. It is perfectly ok to tell the requirements and maybe include a FAQ on

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Michel Salib
@Fabien, as you said, I might not be the right solution, but I agree on our proposal. -- 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

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 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

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

[symfony-users] Re: Limit results with Doctrine

2011-06-08 Thread Michel Salib
You can create a queryBuilder from the repository using -createQuyeryBuilder(), then you can use the limit methods as seen here : http://www.doctrine-project.org/docs/orm/2.0/en/reference/query-builder.html#limiting-the-result -- If you want to report a vulnerability issue on symfony, please

[symfony-users] ReĀ : Custom validator never called

2011-05-15 Thread Michel Salib
In fact, when the constraint factory reads @assert:DebitCard, it cannot fin the class DebitCard because assert is a shortcut to the build in validators namespace. So, you have to create another namespace shortcut in your config.yaml : framework: # ... validation: enabled: true

Re: [symfony-users] Translating form labels in custom domain don't work

2011-05-03 Thread Michel Salib
Why not doing that : {% block field_label %} label for={{ id }}{% trans from forms %}%label%:{% endtrans %}/label {% endblock field_label %} I'am not sure, but it should work. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] Translating form labels in custom domain don't work

2011-05-03 Thread Michel Salib
I see, you are right. So what about doing this : {% block field_label %} label for={{ id }}{{ label | trans([],forms) }}/label {% endblock field_label %} -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] Translating form labels in custom domain don't work

2011-05-03 Thread Michel Salib
You are welcome. Most of the time try to use the filter, it is less verbose and using an inline syntax is much meaningful. You should use trans block only for big translation messages. -- If you want to report a vulnerability issue on symfony, please send it to security at