mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 02:31:35 +02:00
The ` $has_one` can be used both for `1-to-1` and `many-to-1` relations, depending on how is configured the inverse mapping on the related class. The documentation seems to suggest that `$has_one` implies a `1-to-1` relation, but then it gives an example of a `many-to-1` relationship. Since we are focusing on `$has_one` I would also put the `Player` class before the `Team` class. |
||
---|---|---|
.. | ||
_images | ||
00_Getting_Started | ||
01_Lessons | ||
02_Developer_Guides | ||
03_Upgrading | ||
04_Changelogs | ||
05_Contributing | ||
index.md |