Entity edit with reference