Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(HasOneOrMany): Allow returning a new non-persisted entity
Being able to create a new `HasOneOrMany` relationship entity is great, but sometimes you need access to the new entity before persistence. Adding a `newEntity()` method gives additional flexibility and also plays nicely with other relationship types.
- Loading branch information