It seems that my field "role" has disappeared from one version to another. My Model is the next one:
Class.hasMany('User', User, {
role: { type: 'number', rational: false, require: true, defaultValue: 1 }}, {
reverse: 'Class'
});
And when I retrieve the value I get different output:
Class.get(id, function(err, myElem) {
if (err) return next(err);
myElem.getUser(function(err, myUsers) {
console.log(myUsers);
** more code **
Version 2.0.11 output
[ { User_id: [Getter/Setter],
** more values **
photo: [Getter/Setter],
extra: { role: [Getter/Setter] } } ]
Version 2.0.12 output
[ { User_id: [Getter/Setter],
** more values **
photo: [Getter/Setter] } ]
Does anybody have the same problem?
It seems that my field "role" has disappeared from one version to another. My Model is the next one:
And when I retrieve the value I get different output:
Version 2.0.11 output
Version 2.0.12 output
Does anybody have the same problem?