$clientForm = $this->createForm(ClientType::class, $client);
$clientForm->handleRequest($request);
$clientForm = $this->createForm(ClientType::class, $client);
$clientForm->handleRequest($request);
$client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']);
$em->persist($client);
$em->flush();
$client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']);
$em->persist($client);
$em->flush();