I use vs code but I can't get autocomplete on a doctrine entity when I'm in a controller. For example: $user->getNa... doesn't show getName().
I tried a lot of plugins but no one worked (PHP IntelliSense, PHP Intelephense, PHP Intellisense-Crane, PHP-Autocomplete, Symfony for VSCode, Symfony Snippets).
public function nameAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$EntitiyRepository = $em->getRepository('AppBundle:Entitiy');
$user = $EntitiyRepository->find(5);
$company = $user->getcomp
return $this->render('index.html.twig');
}
phpStorm
with plugins +PHPAnnotations
+Symfony plugin
– Imanali Mamadiev Jun 4 '19 at 9:42exit;
before your code ? – Alexis Jun 4 '19 at 9:50