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; }
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; }
public function __construct($options = null) { Configurator::configure($this, $options); }
public function __construct($options = null) { Configurator::Configure($this, $options); $this->cartas = new ArrayCollection(); }