mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-28 08:48:40 +00:00
Core adjustments for pending issues
This commit is contained in:
parent
645ba73fd1
commit
db391d3265
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
namespace Modules\Media\Models;
|
||||
|
||||
|
||||
/**
|
||||
* Media class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
namespace Modules\Media\Models;
|
||||
|
||||
use Modules\Media\Models\MediaMapper;
|
||||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\DataStorage\Database\Query\Column;
|
||||
|
||||
|
|
@ -22,8 +23,7 @@ class CollectionMapper extends MediaMapper
|
|||
{
|
||||
protected static $hasMany = [
|
||||
'sources' => [
|
||||
'mapper' => \Modules\Media\Models\MediaMapper::class, /* mapper of the related object */
|
||||
'relationmapper' => null, /* if the relation itself is a more complex object that has it's own mapper */
|
||||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||
'table' => 'media_relation', /* table of the related object, null if no relation table is used (many->1) */
|
||||
'dst' => 'media_relation_dst',
|
||||
'src' => 'media_relation_src',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
namespace Modules\Media\Models;
|
||||
|
||||
use phpOMS\System\File\Directory;
|
||||
use phpOMS\System\File\Local\Directory;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user