Netbeans, symfony and hints infuriating me

I am a NetBeans user because he was the best hit without money. The code completion was always good, even with something huge and extensive, like Symfony 2. However, I got a new Mac that wanted to download Netbeans, install it, etc.

The completion was always so good that I could do it, for example:

<?php
// assuming a controller scope here.
public function anyAction()
{
    $em = $this->getDoctrine()->getEntityManager();
    $em-> /* and here there would have been a whole lot of possible hints, methods from    
    the EntityManager object on my old NetBeans install, and now it says: no hints */
?>

But they no longer come. The prompt level is not deep enough. For example, when using the keyword “new”, it will give clues about namespaces and classes that I probably would use, but that it’s nothing deeper than that.

I tried a lot with the settings and nothing really worked. Also: installing the Symfony plugin does not seem to work for this.

What should I do?

, Symfony , API .

+5
1

, /symfony/src/Symfony/Bundle/Doctrine/Bundle/Registry.php. phpDoc getEntityManager() :

/**
 * Gets a named entity manager.
 *
 * @param string $name The entity manager name (null for the default one)
 *
 * @return EntityManager
 */
public function getEntityManager($name = null)
{
    // ...
}

phpDoc NetBeans:

/**
 * Gets a named entity manager.
 *
 * @param string $name The entity manager name (null for the default one)
 *
 * @return \Doctrine\ORM\EntityManager
 */
public function getEntityManager($name = null)
{
    // ...
}

github 353085857ba6d17694e5322e2eefb0d8fec6380d symfony/symfony.

+6

All Articles