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": { "hr_staff_active": {
"name": "hr_staff_active", "name": "hr_staff_active",
"type": "INT", "type": "TINYINT",
"null": false "null": false
} }
}, }
"hr_staff_history": { },
"name": "hr_staff_history", "hr_staff_history": {
"fields": { "name": "hr_staff_history",
"hr_staff_history_id": { "fields": {
"name": "hr_staff_history_id", "hr_staff_history_id": {
"type": "INT", "name": "hr_staff_history_id",
"null": false, "type": "INT",
"primary": true, "null": false,
"autoincrement": true "primary": true,
}, "autoincrement": true
"hr_staff_history_staff": { },
"name": "hr_staff_history_staff", "hr_staff_history_staff": {
"type": "INT", "name": "hr_staff_history_staff",
"null": false, "type": "INT",
"foreignTable": "hr_staff", "null": false,
"foreignKey": "hr_staff_id" "foreignTable": "hr_staff",
}, "foreignKey": "hr_staff_id"
"hr_staff_history_unit": { },
"name": "hr_staff_history_unit", "hr_staff_history_unit": {
"type": "INT", "name": "hr_staff_history_unit",
"null": false, "type": "INT",
"foreignTable": "organization_unit", "null": false,
"foreignKey": "organization_unit_id" "foreignTable": "organization_unit",
}, "foreignKey": "organization_unit_id"
"hr_staff_history_department": { },
"name": "hr_staff_history_department", "hr_staff_history_department": {
"type": "INT", "name": "hr_staff_history_department",
"null": false, "type": "INT",
"foreignTable": "organization_department", "null": false,
"foreignKey": "organization_department_id" "foreignTable": "organization_department",
}, "foreignKey": "organization_department_id"
"hr_staff_history_position": { },
"name": "hr_staff_history_position", "hr_staff_history_position": {
"type": "INT", "name": "hr_staff_history_position",
"null": false, "type": "INT",
"foreignTable": "organization_position", "null": false,
"foreignKey": "organization_position_id" "foreignTable": "organization_position",
}, "foreignKey": "organization_position_id"
"hr_staff_history_start": { },
"name": "hr_staff_history_start", "hr_staff_history_start": {
"type": "DATETIME", "name": "hr_staff_history_start",
"null": false "type": "DATETIME",
}, "null": false
"hr_staff_history_end": { },
"name": "hr_staff_history_end", "hr_staff_history_end": {
"type": "DATETIME", "name": "hr_staff_history_end",
"null": false "type": "DATETIME",
} "null": false
} }
} }
} }

View File

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