entity.references in model