Struggle with ServiceManager in Doctrine entity