-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Description / Steps to reproduce / Feature proposal
Add support for BelongsTo relation between two models. Stretch goal for DP3.
Acceptance Criteria
- Update factory method to handle this relation
- create interface for CRUD methods available for the relation. See this as an example.
- create default class which implements the interface
- Implement the
belongsTodecorator- model decorator: infers the metadata for the relation
- repository decorator: return the constrained target crud repository (possible name,
belongsToRepository)
- Address dual usage of
hasManyandbelongsTofor a two way relation definition - tests / docs / blog post