Detached Object

When I try to set a list attribute on a detached object, the Exception <com.haulmont.cuba.core.global.IllegalEntityStateException: Cannot get unfetched attribute [pages] from detached object…> occurs.
How can I get a managed object on controller context?

Thank you!

Currently you have to include all attributes that you are working with to a view that is used when loading entities.