When you say "we can add a virtual property to the compiled PHP entity to get the owner", do you mean adding a method to the repositories ?