Below are the snippets on how to implement a conditional validation in the form. i.e. validate field A if field B is true
As discussed in this tutorial (though it is for symfony 1.2, it will works in 1.4), the key thing is to set a post validator to validate values after the initial validation.
Continue reading ‘symfony conditional validation’
VN:F [1.9.7_1111]
Rating: 9.5/10 (2 votes cast)
VN:F [1.9.7_1111]
If you use symfony’s sfDoctrineApply plugin and for some reason, the ‘id’ and ‘user_id’ in sf_guard_user_profile are messed up, you can try the below SQL.
The SQL would update sf_guard_user’s id to match the sf_guard_user_profile’s id.
Take note that this is provided that your other application tables are using sf_guard_user_profile‘s id and not the sf_guard_user‘s id.

Continue reading ‘sf_guard_user_profile id and user_id are messed up’
VN:F [1.9.7_1111]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.7_1111]