Example #1
0
 public function enregistrer($array)
 {
     $j = new JournalEntity();
     $j->setUser($array['user']);
     $j->setType($array['type']);
     $j->setContenu($array['contenu']);
     $this->em->persist($j);
     $this->em->flush();
     /*
     		echo "<pre>";
     		print_r($j);
     		echo "</pre>";
     		die('');
     		//*/
     return true;
 }
Example #2
0
 public function enregistrer($array)
 {
     $j = new JournalEntity();
     $j->setUser($array['user']);
     $j->setType($array['type']);
     $j->setContenu($array['contenu']);
     $this->em->persist($j);
     $this->em->flush();
     return true;
 }
 /**
  * {@inheritDoc}
  */
 public function getUser()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
     return parent::getUser();
 }