Test fixes after module+builder test extension

This commit is contained in:
Dennis Eichhorn 2019-02-26 21:42:51 +01:00
parent 7647e69efd
commit 50a2fbfc0a
2 changed files with 58 additions and 50 deletions

View File

@ -39,58 +39,58 @@
},
"hr_staff_active": {
"name": "hr_staff_active",
"type": "INT",
"type": "TINYINT",
"null": false
}
},
"hr_staff_history": {
"name": "hr_staff_history",
"fields": {
"hr_staff_history_id": {
"name": "hr_staff_history_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"hr_staff_history_staff": {
"name": "hr_staff_history_staff",
"type": "INT",
"null": false,
"foreignTable": "hr_staff",
"foreignKey": "hr_staff_id"
},
"hr_staff_history_unit": {
"name": "hr_staff_history_unit",
"type": "INT",
"null": false,
"foreignTable": "organization_unit",
"foreignKey": "organization_unit_id"
},
"hr_staff_history_department": {
"name": "hr_staff_history_department",
"type": "INT",
"null": false,
"foreignTable": "organization_department",
"foreignKey": "organization_department_id"
},
"hr_staff_history_position": {
"name": "hr_staff_history_position",
"type": "INT",
"null": false,
"foreignTable": "organization_position",
"foreignKey": "organization_position_id"
},
"hr_staff_history_start": {
"name": "hr_staff_history_start",
"type": "DATETIME",
"null": false
},
"hr_staff_history_end": {
"name": "hr_staff_history_end",
"type": "DATETIME",
"null": false
}
}
},
"hr_staff_history": {
"name": "hr_staff_history",
"fields": {
"hr_staff_history_id": {
"name": "hr_staff_history_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"hr_staff_history_staff": {
"name": "hr_staff_history_staff",
"type": "INT",
"null": false,
"foreignTable": "hr_staff",
"foreignKey": "hr_staff_id"
},
"hr_staff_history_unit": {
"name": "hr_staff_history_unit",
"type": "INT",
"null": false,
"foreignTable": "organization_unit",
"foreignKey": "organization_unit_id"
},
"hr_staff_history_department": {
"name": "hr_staff_history_department",
"type": "INT",
"null": false,
"foreignTable": "organization_department",
"foreignKey": "organization_department_id"
},
"hr_staff_history_position": {
"name": "hr_staff_history_position",
"type": "INT",
"null": false,
"foreignTable": "organization_position",
"foreignKey": "organization_position_id"
},
"hr_staff_history_start": {
"name": "hr_staff_history_start",
"type": "DATETIME",
"null": false
},
"hr_staff_history_end": {
"name": "hr_staff_history_end",
"type": "DATETIME",
"null": false
}
}
}

View File

@ -25,4 +25,12 @@ final class EmployeeHistoryMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $primaryField = 'hr_staff_history_id';
/**
* Primary table.
*
* @var string
* @since 1.0.0
*/
protected static $table = 'hr_staff_history';
}