You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/input-types.mdx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,8 @@ There are some important things to notice:
204
204
- Via constructor if corresponding properties are mentioned as parameters with the same names - exactly as in the example above.
205
205
- If properties are public, they will be just set without any additional effort - no constructor required.
206
206
- For private or protected properties implemented, a public setter is required (if they are not set via the constructor). For example `setLatitude(float $latitude)`.
207
-
- For validation of these Input Types, see the [Custom InputType Validation section](validation#custom-inputtype-validation).
207
+
- For validation of these Input Types, see the [Custom InputType Validation section](validation#custom-inputtype-validation).
208
+
- We advise using the `#[Input]` attribute on DTO style input type objects and not directly on your model objects. Using it on your model objects can cause coupling in undesirable ways.
0 commit comments