Best way to set ownership of an entity

Hello,

I have encountered exactly the same problem, I would be interested in the answer too.

Thanks you in advance.