Display name using ID in FK relationship

I have ‘fees’ table, which has ‘office_id’; this is related in FK to ‘office’ table ID.

I understand Gii supposed to generate the relationship code itself, but I’m unsure how in the ‘Fees’ View to call the ‘office’ code in order to display the ‘name’ instead of ‘id’ ?

What relationship code should be in either model, so that in the ‘Fees’ controller/view, I can use that proper name? In the Office model that Gii produced, i can’t see any type of ‘getName’ or similar function?