mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-25 10:18:40 +00:00
fix null model bug
This commit is contained in:
parent
be9d06e6ee
commit
508563255d
|
|
@ -36,7 +36,7 @@ class Employee implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Account profile.
|
||||
|
|
|
|||
|
|
@ -24,4 +24,16 @@ namespace Modules\HumanResourceManagement\Models;
|
|||
*/
|
||||
final class NullEmployee extends Employee
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param int $id Model id
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(int $id = 0)
|
||||
{
|
||||
$this->id = $id;
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user