We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This:
$dnsDomain = $dnsEntityManager->getRepository('PowerDNSBundle:PowerDNSDomain')->findOneBy([ 'ownerId' => $user->getId() ]); if (!$dnsDomain) { throw new \RuntimeException("Unable to find DNS domain of user {$user->getUsername()}"); } $client->request('DELETE', $this->getUrl('api_delete_dns', [ 'domain' => $dnsDomain->getId(), ]));
Should work because I check if $dnsDomain is not null. But I have:
$dnsDomain
Call to an undefined method object::getId().
Certainly because only the find method is managed.
find
The text was updated successfully, but these errors were encountered:
The findOneBy is not the issue. See #20
findOneBy
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
This:
Should work because I check if
$dnsDomain
is not null. But I have:Certainly because only the
find
method is managed.The text was updated successfully, but these errors were encountered: