inout params in entity model