todo implementations

This commit is contained in:
Dennis Eichhorn 2021-11-20 17:10:09 +01:00
parent bc5a307734
commit e526749bde
6 changed files with 110 additions and 25 deletions

View File

@ -58,6 +58,13 @@
"primary": true, "primary": true,
"autoincrement": 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": { "editor_doc_title": {
"name": "editor_doc_title", "name": "editor_doc_title",
"type": "VARCHAR(255)", "type": "VARCHAR(255)",

View File

@ -69,7 +69,7 @@ final class EditorDocMapper extends DataMapperAbstract
*/ */
protected static array $ownsOne = [ protected static array $ownsOne = [
'type' => [ 'type' => [
'mapper' => EdutirDocTypeMapper::class, 'mapper' => EditorDocTypeMapper::class,
'external' => 'editor_doc_type', 'external' => 'editor_doc_type',
], ],
]; ];

View 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();
}
}

View 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();
}
}