continue with comments impl.

This commit is contained in:
Dennis Eichhorn 2020-07-23 20:49:00 +02:00
parent 7240938082
commit a3c367cde6
2 changed files with 8 additions and 8 deletions

View File

@ -19,14 +19,14 @@ use phpOMS\DataStorage\Database\DatabasePool;
use phpOMS\DataStorage\Database\Schema\Builder; use phpOMS\DataStorage\Database\Schema\Builder;
/** /**
* Comment class. * Comments class.
* *
* @package Modules\News\Admin\Install * @package Modules\News\Admin\Install
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Comment class Comments
{ {
/** /**
* Install comment relation * Install comment relation
@ -46,9 +46,9 @@ class Comment
$mapper = \file_get_contents(__DIR__ . '/../../Models/NewsArticleMapper.php'); $mapper = \file_get_contents(__DIR__ . '/../../Models/NewsArticleMapper.php');
$mapper = \str_replace([ $mapper = \str_replace([
'// @Module Comment ', '// @Module Comments ',
'/* @Module Comment ', '/* @Module Comments ',
' @Module Comment */' ' @Module Comments */'
], '', $mapper); ], '', $mapper);
\file_put_contents(__DIR__ . '/../../Models/NewsArticleMapper.php', $mapper); \file_put_contents(__DIR__ . '/../../Models/NewsArticleMapper.php', $mapper);
} }

View File

@ -15,7 +15,7 @@ declare(strict_types=1);
namespace Modules\News\Models; namespace Modules\News\Models;
use Modules\Admin\Models\AccountMapper; use Modules\Admin\Models\AccountMapper;
// @Module Comment use Modules\Comments\Models\CommentListMapper; // @Module Comments use Modules\Comments\Models\CommentListMapper;
use Modules\Tag\Models\TagMapper; use Modules\Tag\Models\TagMapper;
use phpOMS\DataStorage\Database\DataMapperAbstract; use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -61,7 +61,7 @@ final class NewsArticleMapper extends DataMapperAbstract
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}> * @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
* @since 1.0.0 * @since 1.0.0
*/ */
/* @Module Comment protected static array $ownsOne = [ /* @Module Comments protected static array $ownsOne = [
'news_comment_list' => [ 'news_comment_list' => [
'mapper' => CommentListMapper::class, 'mapper' => CommentListMapper::class,
'self' => 'accounting_costcenter_l11n_language', 'self' => 'accounting_costcenter_l11n_language',
@ -69,7 +69,7 @@ final class NewsArticleMapper extends DataMapperAbstract
'column' => 'code2', 'column' => 'code2',
'conditional' => true, 'conditional' => true,
], ],
]; @Module Comment */ ]; @Module Comments */
/** /**
* Belongs to. * Belongs to.