⟶ PersonRealmProxy Because of the reason mentioned before Realm cannot replicate your logic in the proxied accessors. This will of course work fine for standalone objects.
rule that in such methods fields can only be accessed with accessors, but such rule would be hard to enforce and easy to forget, causing many subtle bugs so we decided to disallow it.
> add custom accessors to model classes > replace field access with accessors The custom accessors are called: > realmGet$<fieldName> > realmSet$<fieldName>