/**
* @param int $id
*
* @throws \Shopware\Components\Api\Exception\ParameterMissingException
* @throws \Shopware\Components\Api\Exception\NotFoundException
*
* @return array|\Shopware\Models\Property\Group
*/
public function getOne($id) { $this->
checkPrivilege('read'
);
if (empty($id)) { throw new ApiException\
ParameterMissingException('id'
);
} $filters =
[['property' => 'groups.id', 'expression' => '=', 'value' =>
$id]];
$query =
$this->
getRepository()->
getListGroupsQuery($filters);
/** @var \Shopware\Models\Property\Group|null $property */
$property =
$query->
getOneOrNullResult($this->
getResultMode());