mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-14 20:08:40 +00:00
Unit test bug fixes
This commit is contained in:
parent
d302ac5648
commit
9c219ca7c5
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Employee class.
|
||||||
|
*
|
||||||
|
* @category HumanResources
|
||||||
|
* @package Framework
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class EmployeeHistory {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
|
|
||||||
|
class EmployeeHistoryMapper extends DataMapperAbstract
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -16,8 +16,6 @@
|
||||||
namespace Modules\HumanResourceManagement\Models;
|
namespace Modules\HumanResourceManagement\Models;
|
||||||
|
|
||||||
use Modules\Admin\Models\AccountMapper;
|
use Modules\Admin\Models\AccountMapper;
|
||||||
use Modules\HumanResourceManagement\Models\EmployeeHistoryMapper;
|
|
||||||
use Modules\HumanResourceManagement\Models\EmployeeStatus;
|
|
||||||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
|
|
||||||
class EmployeeMapper extends DataMapperAbstract
|
class EmployeeMapper extends DataMapperAbstract
|
||||||
|
|
@ -31,7 +29,7 @@ class EmployeeMapper extends DataMapperAbstract
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'],
|
'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'hr_staff' => ['name' => 'hr_staff', 'type' => 'int', 'internal' => 'account'],
|
'hr_staff_account' => ['name' => 'hr_staff_account', 'type' => 'int', 'internal' => 'account'],
|
||||||
];
|
];
|
||||||
|
|
||||||
protected static $ownsOne = [
|
protected static $ownsOne = [
|
||||||
|
|
@ -42,20 +40,6 @@ class EmployeeMapper extends DataMapperAbstract
|
||||||
];
|
];
|
||||||
|
|
||||||
protected static $hasMany = [
|
protected static $hasMany = [
|
||||||
'history' => [
|
|
||||||
'mapper' => EmployeeHistoryMapper::class,
|
|
||||||
'relationmapper' => EmployeeHistoryMapper::class,
|
|
||||||
'table' => 'hr_history',
|
|
||||||
'src' => 'hr_history_staff',
|
|
||||||
'dst' => null,
|
|
||||||
],
|
|
||||||
'status' => [
|
|
||||||
'mapper' => EmployeeStatus::class,
|
|
||||||
'relationmapper' => EmployeeStatus::class,
|
|
||||||
'table' => 'hr_status',
|
|
||||||
'src' => 'hr_status_staff',
|
|
||||||
'dst' => null,
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user