mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-27 23:28:41 +00:00
add todos from github
This commit is contained in:
parent
69210f6fcb
commit
74c9a094ed
|
|
@ -15,15 +15,14 @@ declare(strict_types=1);
|
|||
namespace Modules\Organization\Controller;
|
||||
|
||||
use Modules\Organization\Models\Department;
|
||||
|
||||
use Modules\Organization\Models\DepartmentMapper;
|
||||
use Modules\Organization\Models\Position;
|
||||
use Modules\Organization\Models\PositionMapper;
|
||||
use Modules\Organization\Models\Status;
|
||||
use Modules\Organization\Models\Unit;
|
||||
use Modules\Organization\Models\UnitMapper;
|
||||
use phpOMS\Message\NotificationLevel;
|
||||
|
||||
use phpOMS\Message\NotificationLevel;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Model\Message\FormValidation;
|
||||
|
|
@ -37,6 +36,16 @@ use phpOMS\Utils\Parser\Markdown\Markdown;
|
|||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @todo Orange-Management/Modules#135
|
||||
* Automatic group generation *optional*
|
||||
* Whenever a new
|
||||
* * Unit
|
||||
* * Department
|
||||
* * Position
|
||||
* is created a new group is created and all of the possibilities (this should be a optional setting for the module).
|
||||
* Group name strucutre: org:position-department-unit or org:unit-department-position
|
||||
* This should be solvable through hooks.
|
||||
*/
|
||||
final class ApiController extends Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -48,10 +48,6 @@ final class UnitMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => self::class,
|
||||
'dest' => 'organization_uni_parent',
|
||||
],
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'dest' => 'organization_unit_parent',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user