Support persisted objects in factories. Useful when testing where queries :)