Sylius/Sylius — pull request #616 by winzou (2013-11-19 10:32:13+00:00)
Title: Abandon cart on cart clean

I may have missed something, but actually when clearing a cart it's deleted from the database, but not from the session (cartProvider using SessionStorage). So on the next page, CartProvider will do `$this->repository->find($identifier);` leading to a NotFoundException because the cart has been deleted.

This PR delete the cart identifier from the session. That way, on the next page CartProvider will create a new cart instead of trying to use an unexisting one.

The weird thing is that it's currently working well on the demo, but how? Can't find, even with a grep, where the `abandonCart` method is called.