support for assign of controllers with entity manager arguments