Exemple #1
0
 public function update(array $data)
 {
     $entity = $this->em->getReference('Advocacia\\Entity\\Cadastro', $data['id']);
     $entity = Configurator::configure($entity, $data);
     $this->em->persist($entity);
     $this->em->flush();
     return $entity;
 }
Exemple #2
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
 }