mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-17 08:58:42 +00:00
impl. lazy loading and better media lists
This commit is contained in:
parent
cefb6595e9
commit
53c7a3bf4a
|
|
@ -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 Comments use Modules\Comments\Models\CommentListMapper;
|
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,12 +61,12 @@ 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 Comments protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
'comments' => [
|
'comments' => [
|
||||||
'mapper' => CommentListMapper::class,
|
'mapper' => CommentListMapper::class,
|
||||||
'self' => 'news_comment_list',
|
'self' => 'news_comment_list',
|
||||||
],
|
],
|
||||||
]; @Module Comments */
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Belongs to.
|
* Belongs to.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user