Commit b9477a7
committed
minor #10331 (Proposal) Added a note on forms validation (mickaelandrieu, javiereguiluz)
This PR was submitted for the 4.1 branch but it was merged into the 2.8 branch instead (closes #10331).
Discussion
----------
(Proposal) Added a note on forms validation
Hello!
regarding the way I validate my forms, I've always found that storing validation rules into my entities is a better idea than using the constraints inside my form types.
When I need a really specific control on my form validation, I inject validation groups: do you think it can be viewed as a best practice?
Commits
-------
68a7931 Reword
21c4c9f Added a note on forms validation1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
148 | 176 | | |
149 | 177 | | |
150 | 178 | | |
| |||
207 | 235 | | |
208 | 236 | | |
209 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
0 commit comments