mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-18 11:08:40 +00:00
todo implementations
This commit is contained in:
parent
bc5a307734
commit
e526749bde
|
|
@ -58,6 +58,13 @@
|
|||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"editor_doc_type": {
|
||||
"name": "editor_doc_type",
|
||||
"type": "INT",
|
||||
"null": true,
|
||||
"foreignTable": "editor_doc_type",
|
||||
"foreignKey": "editor_doc_type_id"
|
||||
},
|
||||
"editor_doc_title": {
|
||||
"name": "editor_doc_title",
|
||||
"type": "VARCHAR(255)",
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ final class EditorDocMapper extends DataMapperAbstract
|
|||
*/
|
||||
protected static array $ownsOne = [
|
||||
'type' => [
|
||||
'mapper' => EdutirDocTypeMapper::class,
|
||||
'mapper' => EditorDocTypeMapper::class,
|
||||
'external' => 'editor_doc_type',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
39
Models/NullEditorDocType.php
Normal file
39
Models/NullEditorDocType.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 8.0
|
||||
*
|
||||
* @package Modules\Editor\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Editor\Models;
|
||||
|
||||
/**
|
||||
* Null model
|
||||
*
|
||||
* @package Modules\Editor\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class NullEditorDocType extends EditorDocType
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param int $id Model id
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(int $id = 0)
|
||||
{
|
||||
$this->id = $id;
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
39
Models/NullEditorDocTypeL11n.php
Normal file
39
Models/NullEditorDocTypeL11n.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 8.0
|
||||
*
|
||||
* @package Modules\Editor\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Editor\Models;
|
||||
|
||||
/**
|
||||
* Null model
|
||||
*
|
||||
* @package Modules\Editor\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class NullEditorDocTypeL11n extends EditorDocTypeL11n
|
||||
{
|
||||
/**
|
||||
* 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