mirror of
https://github.com/Karaka-Management/oms-EventManagement.git
synced 2026-01-30 01:38:42 +00:00
Fixing comments and parameter for orm
This commit is contained in:
parent
93a21d9925
commit
f450ba4850
|
|
@ -18,6 +18,7 @@ namespace Modules\EventManagement\Models;
|
|||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\DataStorage\Database\Query\Column;
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
|
||||
/**
|
||||
* Mapper class.
|
||||
|
|
@ -97,16 +98,17 @@ class EventMapper extends DataMapperAbstract
|
|||
protected static $primaryField = 'eventmanagement_event_id';
|
||||
|
||||
/**
|
||||
* Create media.
|
||||
* Create object.
|
||||
*
|
||||
* @param Event $obj Obj
|
||||
* @param mixed $obj Object
|
||||
* @param int $relations Behavior for relations creation
|
||||
*
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function create($obj, bool $relations = true)
|
||||
public static function create($obj, int $relations = RelationType::ALL)
|
||||
{
|
||||
try {
|
||||
$objId = parent::create($obj, $relations);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user