docs for entity manager