Пример #1
0
 public function update(array $data)
 {
     $eventoEntity = $this->em->getReference('Application\\Entity\\Evento', $data['cod_evento']);
     $eventoEntity = Configurator::configure($eventoEntity, $data);
     $this->em->persist($eventoEntity);
     $this->em->flush();
     return $eventoEntity;
 }
Пример #2
0
 public function update(array $data)
 {
     $alunoEntity = $this->em->getReference('Application\\Entity\\Aluno', $data['cod_aluno']);
     if (empty($data['senha'])) {
         unset($data['senha']);
     }
     $alunoEntity = Configurator::configure($alunoEntity, $data);
     $this->em->persist($alunoEntity);
     $this->em->flush();
     return $alunoEntity;
 }
Пример #3
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
 }
Пример #4
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
     $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36);
 }