mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-13 06:58:41 +00:00
Fixing comments and parameter for orm
This commit is contained in:
parent
bbad0a7c41
commit
2c9ed6cbe6
|
|
@ -18,6 +18,7 @@ namespace Modules\Calendar\Models;
|
||||||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\DataStorage\Database\Query\Column;
|
use phpOMS\DataStorage\Database\Query\Column;
|
||||||
|
use phpOMS\DataStorage\Database\RelationType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mapper class.
|
* Mapper class.
|
||||||
|
|
@ -96,16 +97,17 @@ class CalendarMapper extends DataMapperAbstract
|
||||||
protected static $primaryField = 'calendar_id';
|
protected static $primaryField = 'calendar_id';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create media.
|
* Create object.
|
||||||
*
|
*
|
||||||
* @param Calendar $obj Media
|
* @param mixed $obj Object
|
||||||
|
* @param int $relations Behavior for relations creation
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @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 {
|
try {
|
||||||
$objId = parent::create($obj, $relations);
|
$objId = parent::create($obj, $relations);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ namespace Modules\Calendar\Models;
|
||||||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\DataStorage\Database\Query\Column;
|
use phpOMS\DataStorage\Database\Query\Column;
|
||||||
|
use phpOMS\DataStorage\Database\RelationType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mapper class.
|
* Mapper class.
|
||||||
|
|
@ -90,16 +91,17 @@ class EventMapper extends DataMapperAbstract
|
||||||
protected static $primaryField = 'calendar_event_id';
|
protected static $primaryField = 'calendar_event_id';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create media.
|
* Create object.
|
||||||
*
|
*
|
||||||
* @param Event $obj Media
|
* @param mixed $obj Object
|
||||||
|
* @param int $relations Behavior for relations creation
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @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 {
|
try {
|
||||||
$objId = parent::create($obj, $relations);
|
$objId = parent::create($obj, $relations);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ namespace Modules\Calendar\Models;
|
||||||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\DataStorage\Database\Query\Column;
|
use phpOMS\DataStorage\Database\Query\Column;
|
||||||
|
use phpOMS\DataStorage\Database\RelationType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mapper class.
|
* Mapper class.
|
||||||
|
|
@ -80,16 +81,17 @@ class ScheduleMapper extends DataMapperAbstract
|
||||||
protected static $primaryField = 'schedule_id';
|
protected static $primaryField = 'schedule_id';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create media.
|
* Create object.
|
||||||
*
|
*
|
||||||
* @param Calendar $obj Media
|
* @param mixed $obj Object
|
||||||
|
* @param int $relations Behavior for relations creation
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @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 {
|
try {
|
||||||
$objId = parent::create($obj, $relations);
|
$objId = parent::create($obj, $relations);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user