with entity manager