Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While deleting a inner instance with self relation returns code 204 #10

Open
mmohtta opened this issue Aug 11, 2017 · 0 comments
Open
Labels

Comments

@mmohtta
Copy link

mmohtta commented Aug 11, 2017

I have a relation named Reportee for a person model ,
while deleting a person with no Reportee it returns response code 204 with no count

{
"_id": "employeePayroll2",
"name": "Person",
"plural": "Persons",
"base": "PersistedModel",
"persistedModel": true,
"strict": false,
"public": true,
"idInjection": false,
"options": {
"validateUpsert": true
},
"properties": {
"personName": {
"required": false,
"label": "",
"type": "string",
"isArray": true,
"propertyName": "personName",
"id": false,
"index": false,
"description": "",
"displayInView": true,
"minLength": 0,
"maxLength": 30,
"regExp": "",
"defaultVal": ""
}
},
"relations": {
"Reportee":{
"type":"hasMany",
"model":"Person",
"foreignKey":"reportsTo"
},
"manager":{
"type":"belongsTo",
"model":"Person",
"foreignKey":"reportsTo"
}
},
"mixins": {
"CascadeDelete": {
"relations": ["Reportee"]
}
},
"acls": [],
"methods": {},
"dataSource": "remoteMongoDB"
}

@mmohtta mmohtta changed the title While deleting a inner instance with self relation While deleting a inner instance with self relation returns code 204 Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants