Answer the question
In order to leave comments, you need to log in
How to return empty array instead of null using Doctrine ORM without using Query Builder?
There is an original method
public function getUserData(string $email): array
{
return $this->findOneBy(['email' => $email]);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question