correction
This commit is contained in:
parent
92ce9cbaaa
commit
4fa5cb30ea
|
@ -599,9 +599,11 @@ class GroupController extends Controller
|
||||||
|
|
||||||
// Notification message
|
// Notification message
|
||||||
$usergroup = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$this->getUser(),"group"=>$id));
|
$usergroup = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$this->getUser(),"group"=>$id));
|
||||||
$user=$em->getRepository("CadolesCoreBundle:User")->find($this->getUser());
|
if($usergroup) {
|
||||||
$message="Désinscription de l'utilisateur<br>".$user->getLastname()." ".$user->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();;
|
$user=$em->getRepository("CadolesCoreBundle:User")->find($this->getUser());
|
||||||
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($usergroup->getKeyvalue(),$this->getUser()->getId(),$id,$message);
|
$message="Désinscription de l'utilisateur<br>".$user->getLastname()." ".$user->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();;
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($usergroup->getKeyvalue(),$this->getUser()->getId(),$id,$message);
|
||||||
|
}
|
||||||
|
|
||||||
// Desinscription
|
// Desinscription
|
||||||
$em->remove($usergroup);
|
$em->remove($usergroup);
|
||||||
|
|
Loading…
Reference in New Issue