Skip to content

Commit 75a1a12

Browse files
committed
Improved documentation
1 parent a532bc9 commit 75a1a12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

website/docs/input-types.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ There are some important things to notice:
204204
- Via constructor if corresponding properties are mentioned as parameters with the same names - exactly as in the example above.
205205
- If properties are public, they will be just set without any additional effort - no constructor required.
206206
- 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.
208209

209210
### Multiple Input Types from the same class
210211

0 commit comments

Comments
 (0)