Ejemplo n.º 1
0
 public function notifier($array)
 {
     $j = new Notification();
     if (array_key_exists("entite", $array)) {
         $j->setEntite($array['entite']);
     } else {
         $j->setActeur($array['acteur']);
     }
     $j->setTitre($array['titre']);
     $j->setContenu($array['contenu']);
     $this->em->persist($j);
     $this->em->flush();
     /*
     		echo "<pre>";
     		print_r($j);
     		echo "</pre>";
     		die('');
     		//*/
     return true;
 }
 /**
  * {@inheritDoc}
  */
 public function getAlerte()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAlerte', []);
     return parent::getAlerte();
 }