Is there a way to change the visibility of cake’s entity properties (variables) that are coming from the DB Schema?
After making a $query = $this->ModelTable->get()
I don’t want its variables to be accessed like $query->id
, it should be accessed through a method like $query->getId()
.
I know cake has set and get methods, but they mean nothing since you can set and change values directly.
I hope someone can help
Thanks in advance!