Closed homestar9 closed 3 months ago
@elpete I'm not sure why the format test failed, but all other tests appear to have passed. Please let me know if you have any feedback or questions about this PR. It will make a nice addition to entity relationships.
I also updated the docs and submitted a review.
@elpete, I'm sure you're swamped with other projects, so there's no rush on this PR. I just want to check in to make sure you received the notification about this PR and the other pending ones.
Being able to create a new
HasOneOrMany
relationship entity is great, but sometimes you need access to the new entity before persistence. Adding anewEntity()
method gives additional flexibility and also plays nicely with other relationship types.Additionally, being able to call something like
prc.post.postCategories().newEntity()
is much cleaner than using the current workaround, which isprc.post.postCategories().getRelated().newEntity()