mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
b9922a7314
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. |
||
---|---|---|
.. | ||
How_Tos | ||
01_Data_Model_and_ORM.md | ||
02_Relations.md | ||
03_Lists.md | ||
04_Data_Types_and_Casting.md | ||
05_Extending_DataObjects.md | ||
06_SearchFilters.md | ||
07_Permissions.md | ||
08_SQL_Select.md | ||
09_Validation.md | ||
10_Versioning.md | ||
11_Scaffolding.md | ||
12_Indexes.md | ||
index.md |