Today I've encountered an issue with a project I'm working on, I've created a model for Mongo with protected variables and get-set functions however, upon calling the save()
function no protected variables are saved even though they have been set with their respective setter. In order for the model to work it seems I have to make all variables public without setters.
Is this a bug or intentional?