Skip to content

Commit 814ddd4

Browse files
authored
docs: add warning about fully qualified types in HasMany relations (#1803)
1 parent eb7150b commit 814ddd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/1-essentials/03-database.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ final class Book
219219
}
220220
```
221221

222+
:::warning
223+
Relation types in docblocks must always be fully qualified, and not use short class names.
224+
:::
225+
222226
Tempest will infer all the information it needs to build the right queries for you. However, there might be cases where property names and type information don't map one-to-one on your database schema. In that case you can use dedicated attributes to define relations.
223227

224228
### Relation attributes

0 commit comments

Comments
 (0)