use manager and not entity manager to avoid warning in production