sonata-project/SonataAdminBundle — pull request #1087 by cram1010 (2012-12-29 15:14:26+00:00)
Title: Wrong detection of request method causes that deleting an object does now work

`CRUDController:deleteAction` is checking that HTTP method is `DELETE` but instead `POST` is given, so an object never gets deleted.

The pull request fix this checking for `POST` instead than for `DELETE`, but surely this should be a temporary workaround because I think that the `getMethod()` method should be returning `DELETE`. The form has the hidden `_method` element set to `DELETE` so I don't know where it is the problem. Maybe is it a Symfony bug?