add ability to de-serialize doctrine entities