$modelManager =
$this->
get(\Shopware\Components\Model\ModelManager::
class);
try { $modelManager->
persist($group);
$modelManager->
flush();
} catch (\Exception
$e) { $this->
View()->
assign(['success' => false, 'message' =>
$e->
getMessage()]);
return;
} $data =
$this->
getPropertyRepository() ->
getGroupDetailQuery($group->
getId()) ->
getOneOrNullResult(\Doctrine\ORM\AbstractQuery::HYDRATE_ARRAY
);
$this->
View()->
assign(['success' => true, 'data' =>
$data]);
} /**
* Updates one group identified by its identifier
*/
public function updateSetAction() { if (!
($id =
$this->
Request()->
getParam('id'
))) {