add entity manager trait