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