public function update(array $data)
 {
     $entity = $this->em->getReference($this->entity, $data['id']);
     $entity = Configurator::configure($entity, $data);
     $this->em->persist($entity);
     $this->em->flush();
     return $entity;
 }
예제 #2
0
 public function update(array $data)
 {
     $entity = $this->em->getReference($this->entity, $data['id']);
     $entity = Configurator::configure($entity, $data);
     $cidade = $this->em->getReference("Seerc\\Entity\\Cidade", $data['cidade']);
     $entity->setCidade($cidade);
     $this->em->persist($entity);
     $this->em->flush();
     return $entity;
 }
예제 #3
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
 }
예제 #4
0
 public function __construct($options = null)
 {
     Configurator::Configure($this, $options);
     $this->cartas = new ArrayCollection();
 }