-
Notifications
You must be signed in to change notification settings - Fork 518
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
Cleanup command #1124
Comments
I think that getting orphaned Doctrine objects does not belong here. |
Maybe I described it the wrong way. I'm not talking about orphaned doctrine objects, I'm talking about orphaned files. |
Oh well, in that case it looks fine to me. |
Doctrine has Might still make sense have a command to check data consistency though. |
Feature Request
Summary
In a relation database it is quiet easy to implicitly delete a row throw foreign key constraints without doctrine noticing.
I want to propose a cleanup command that goes through all mapped entities and all existing files and tries to delete all files that are orphaned.
I could implement this for doctrine orm but I'm not fluent in the other storage engines.
I also see that this could become challenging if the amount of files goes above ~65.535 and even before that, it probably should work in chunks to avoid loading everything into ram.
The text was updated successfully, but these errors were encountered: