Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gedmo soft-delete #3

Merged
merged 4 commits into from
Feb 9, 2020
Merged

Gedmo soft-delete #3

merged 4 commits into from
Feb 9, 2020

Conversation

tg666
Copy link
Collaborator

@tg666 tg666 commented Feb 9, 2020

A soft-deletable extension from Gedmo is now used instead of a custom implementation. Rules for PHP-Cs-Fixer have been also changed.

- changed tilde operators to caret operators
- added dev dependency on `gedmo/doctrine-extensions`
- added suggestion for package `gedmo/doctrine-extensions`
- added configuration options `soft_delete.register_listener` and `soft_delete.register_filter`
- removed methods `ISoftDeletableImage::{delete(), restore()}`
- added methods `ISoftDeletableImage::{setDeletedAt(), getDeletedAt()}`
- modified trait `TSoftDeletableImage`
- modified manipulator `DeleteManipulator` (soft deletions are now managed by Gedmo listener)
- removed WHERE condition for soft-deletable images in `DoctrineDataStorage`
- removed manual filtration of soft-deleted images in `ArrayDataStorage`
- storage `CallbackDataStorage` returns ArrayCollection directly now
@tg666 tg666 merged commit 8602d1a into master Feb 9, 2020
@tg666 tg666 deleted the feature/gedmo-soft-deletable branch February 9, 2020 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant