Added doctrine object manager service and entity injection listener.