Fix the delete method, have to use the flush doctrine method.