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
Deletion of moderatable objects #1
Conversation
…erationScope::extend method
i'm glad i was able giacomo Inviato da iPhone
|
Hi, I've just done an extended search on the performDeleteOnModel in the Eloquent class. |
Good to know that the package is compatible with Laravel 5.0! |
Hi, No it's ok to remove that method because it is a bug of laravel 5.0 and not a bug of your module. It has been fixed since laravel 5.1 as I said to you in my last message. Anyway, thank you for warning me about your change Giacomo Inviato da iPad
|
No problem. Can you think another workaround to achieve compatibility with Laravel 5.0? |
Mmmh, I think the only way is to keep two distinct versions of the module, but I don't know if the softdeletes trait problem applies to 5.0 too. For me is not a problem because I fixed the bug in my projects directly and also I plan to move as soon as possible to 5.2 Giacomo Inviato da iPad
|
Okay then I will remove the function entirely. Thanks |
Hi,
I think that there is a little when trying to delete a moderatable object by ising the delete() method. Indeed the eloquent delete method applies again the query scopes, so it is impossible to perform the delete on "rejected" adn "pending" objects.
I simply redefined the performDeleteOnModel in teh emoderatable class. Possibly there is a more elegant solution.