Employee
Employee and workforce-related business data.
Integration
Extend the Business Core document and collection in your application and map the concrete classes. Adjust the namespace and class names as needed.
<?php
namespace MyApplication;
use Core\Document\Annotation\Database;
#[Database(document: MyEmployee::class)]
class MyEmployeeCollection extends \BusinessCore\Collection\Party\EmployeeCollection\Base
{
}
#[Database(document: MyEmployeeCollection::class)]
class MyEmployee extends \BusinessCore\Document\Party\Employee\Base
{
}
Properties
Properties declared by BusinessCore\Document\Party\Employee\Base, excluding inherited Core
Document properties.
| Property | PHP type |
|---|---|
externalId |
ObjectId|null |
employeeNumber |
string|null |
employeeGroupId |
ObjectId|null |
userId |
ObjectId|null |
firstName |
string|null |
lastName |
string|null |
email |
string|null |
addresses |
array|null |
department |
string|null |
position |
string|null |
employedSince |
DateTime|null |