コード例 #1
0
ファイル: Journal.php プロジェクト: junioraby/TRDC
 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;
 }
コード例 #2
0
ファイル: DDC.php プロジェクト: junioraby/TRDC
 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;
 }
コード例 #3
0
 /**
  * {@inheritDoc}
  */
 public function setType(\TRC\CoreBundle\Entity\TypeJournal $type = NULL)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
     return parent::setType($type);
 }