refs #6553 changes models #2522

Open
carlossa wants to merge 38 commits from 6553-workerBusiness into dev
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 024ab8602d - Show all commits

View File

@ -106,6 +106,11 @@
"model": "WorkerDepartment",
"foreignKey": "id"
},
"currentBusiness": {
"type": "belongsTo",
"model": "Business",
"foreignKey": "businessFk"
},
"collegues": {
"type": "hasMany",
"model": "WorkerTeamCollegues",
@ -344,7 +349,8 @@
"educationLevelFk",
"originCountryFk",
"maritalStatus",
"SSN"
"SSN",
"businessFk"
],
"include": [
{
@ -357,7 +363,7 @@
}
},
{
"relation": "business",
"relation": "currentBusiness",
"scope": {
"fields": [
"id",