mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-12 14:58:41 +00:00
Fixing comments and parameter for orm
This commit is contained in:
parent
697af0cedb
commit
7a0d6c887a
|
|
@ -18,6 +18,7 @@ namespace Modules\News\Models;
|
|||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\DataStorage\Database\Query\Column;
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
|
||||
class NewsArticleMapper extends DataMapperAbstract
|
||||
{
|
||||
|
|
@ -66,16 +67,17 @@ class NewsArticleMapper extends DataMapperAbstract
|
|||
protected static $createdAt = 'news_created_at';
|
||||
|
||||
/**
|
||||
* Create article.
|
||||
* Create object.
|
||||
*
|
||||
* @param mixed $obj News article
|
||||
* @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