lookinlab/adonis-lucid-soft-deletes

Add deleted_at in where to link tables

Closed this issue · 1 comments

Hi
When using preload, I think that deleted_at should be added to all tables involved.
For example, if a link between book and author is removed, the search will still bring the link, because the deleted_at is for the Book table, I think I should add it to the author_book table as well.

Hello :)
In this case may be use a HasManyThrough relation. Create a model AuthorBook with soft deletes.
Not sure for this solution, need try and test