-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I have model like
"properties": {
"id": {
"type": "string",
"id": true
},
"name": {
"type": "string"
},
"currency": {
"type": "string"
}
},
"dataSource": "mongodb",
"validations": [],
"relations": {
"user": {
"type": "belongsTo",
"model": "user",
"foreignKey": "userId",
"required": true
}
},
And user should be required for all records. But I can easilly create record without user. "required" is not working for related models.
May be I can create validator but I prefer native support.
Alex
sundeepgupta, rafaneri, holem, bmaupin, ymoreiratiti and 3 more