Ejemplo n.º 1
0
 public function newcardAction()
 {
     $em = $this->getServiceLocator()->get('Doctrine\\ORM\\EntityManager');
     $card = new Card();
     $card->setDateadd();
     $card->setDateup();
     $card->setActive();
     $card->setGameId();
     $card->setUserId(1);
     $em->persist($card);
     $em->flush();
     $this->layout('layout/empty');
     echo "OK";
 }