mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: flush after persist
This commit is contained in:
@@ -46,7 +46,7 @@ class TestController extends AbstractController
|
|||||||
{
|
{
|
||||||
$rdap = new RDAPClient(['domain' => 'https://rdap.nic.fr/domain/']);
|
$rdap = new RDAPClient(['domain' => 'https://rdap.nic.fr/domain/']);
|
||||||
try {
|
try {
|
||||||
$res = $rdap->domainLookup('nic.fr', RDAPClient::ARRAY_OUTPUT);
|
$res = $rdap->domainLookup('maelgangloff.fr', RDAPClient::ARRAY_OUTPUT);
|
||||||
} catch (RDAPWrongRequest $e) {
|
} catch (RDAPWrongRequest $e) {
|
||||||
return new Response(null, Response::HTTP_BAD_REQUEST);
|
return new Response(null, Response::HTTP_BAD_REQUEST);
|
||||||
} catch (ClientExceptionInterface $e) {
|
} catch (ClientExceptionInterface $e) {
|
||||||
@@ -124,6 +124,7 @@ class TestController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$em->persist($domain);
|
$em->persist($domain);
|
||||||
|
$em->flush();
|
||||||
|
|
||||||
|
|
||||||
foreach ($res['nameservers'] as $rdapNameserver) {
|
foreach ($res['nameservers'] as $rdapNameserver) {
|
||||||
|
|||||||
Reference in New Issue
Block a user