Fixing assosciation in "detached" state

I have a table “Screens” with association to table “client” and column “clientName”, but when I call

Screens screens = screensesDataGrid.getSingleSelectedItem();
screens.getClientName();

entity.Clients-2f9e6883-4454-2fcd-ad88-f9e58aa4c54b [detached]

The result is in a [detached] state, however, the client name displays properly in the table fine. How can I diagnose this?

The instance name in the clients table is set to clientName.

Hello,

Usually such an error is due to the lack of necessary attributes in fetchPlan.
https://docs.jmix.io/jmix/data-access/fetching.html#partial-entities

Please send a test project that reproduces this error.

Regards,
Nikita

What do you expect to see?