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
Uh oh!
There was an error while loading. Please reload this page.
-
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\SoftDeleteto the entity. I also addeddeleted_atcolumn 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_atis 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.xthat 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.xdocs and also linked in the 2.x DeletedAt (SoftDelete) page?Beta Was this translation helpful? Give feedback.
All reactions