Commiting with slim + doctrine framework