has-many
The following options can be specified for a has-many
tag:
Name | Required | Details |
---|---|---|
| required | The name of the model of which this object has many. |
| required | Name for the relationship. Used in code whenever this relationship needs to be accessed. Recommended value is the pluralized form of the model name on the other side of the relationship, e.g. "assets". |
| optional | The name of the "belongs-to" reference on the other object. This is required when there are multiple relationships between the same two models. |
Last updated