Fix doctrine entities problem