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; }
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; }
public function __construct($options = null) { Configurator::configure($this, $options); }
public function __construct($options = null) { Configurator::configure($this, $options); $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36); }