Remove mapper abstract duplication

This commit is contained in:
Dennis Eichhorn 2017-11-08 21:18:31 +01:00
parent ec840f4136
commit 1a222be8a2

View File

@ -113,25 +113,4 @@ class EventMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $primaryField = 'eventmanagement_event_id';
/**
* Create object.
*
* @param mixed $obj Object
* @param int $relations Behavior for relations creation
*
* @return mixed
*
* @since 1.0.0
*/
public static function create($obj, int $relations = RelationType::ALL)
{
try {
$objId = parent::create($obj, $relations);
} catch (\Exception $e) {
return false;
}
return $objId;
}
}