/**
  * 
  * @param array $group
  * @return bool $success
  */
 public function editGroup($group)
 {
     $groupClone = $this->cloneGroup();
     $groupClone->setAllFields($this->validator->checkFields($group));
     $success = $this->modelRepository->editGroup($groupClone->getGroup());
     return $success;
 }
 /**
  * 
  * @param array $group
  * @return int $id
  */
 public function createGroup($group)
 {
     $group = $this->validator->checkFields($group);
     $id = $this->modelRepository->createGroup($group);
     return $id;
 }