Fixing comments and parameter for orm

This commit is contained in:
Dennis Eichhorn 2016-05-14 16:23:17 +02:00
parent c5094186ea
commit 13dec3084b

View File

@ -18,6 +18,7 @@ namespace Modules\Tasks\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.
@ -74,16 +75,17 @@ class TicketMapper extends DataMapperAbstract
protected static $primaryField = 'ticket_id'; protected static $primaryField = 'ticket_id';
/** /**
* Create media. * Create object.
* *
* @param Task $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);