Moved doctrine knowledge into a manager class