Soft delete documentation clarification #498
Unanswered
ljuba-roofr
asked this question in
Q&A
Replies: 1 comment
-
Hello. I think it makes sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think 2.x DeletedAt (SoftDelete) could use a bit more clarification. I'm using
I followed steps from 2.x DeletedAt (SoftDelete) docs page and I added
#[Behavior\SoftDelete
to the entity. I also addeddeleted_at
column in postgresql that's set to timestamp. Since this page doesn't specify any other steps required I would expect this to be enough to get the soft deleted functionality working but when I query entities from that table I'm still getting records wheredeleted_at
is set to a dateI looked a bit more in the docs and I found 1.x Soft Deleted Entities that shows this
Only when I added 1.x NotDeletedScope scope queries stopped returning soft deleted rows
Then I found 2.x NotDeletedScope scope example but it's not as clear as
1.x
that this is required for soft delete behaviour or that I should add a mapperMaybe 1.x Soft Deleted Entities page could be added in
2.x
docs and also linked in the 2.x DeletedAt (SoftDelete) page?Beta Was this translation helpful? Give feedback.
All reactions