public function addMensaTem($nombreRol, $funciones) { $MensatemSistema = new MensajeCorreTemp(); $MensatemSistema->setMencortemTexto($nombreRol); $MensatemSistema->setMencortemNombre($funciones); $this->em->persist($MensatemSistema); $this->em->flush(); $matrizMensajes = array('El proceso de almacenar el mensaje correo ha termino con exito', 'Rol ' . $MensatemSistema->getMencortemTexto()); return $matrizMensajes; }