pulse00/Symfony-2-Eclipse-Plugin — Issue #83: Annotation route missing + not updating
Author: Abhoryo
Created: 2012-01-24 15:59:47+00:00
State: open

In a controller, I have this code:

```php
validateUser($user);

$this->get("apy_breadcrumb_trail")
->add($user->getViewname(), 'back_member_show', array('id' => $user->getId()))
->add('Information');

$role = 'ROLE_'.$user->getType();
$roles = $this->container->get('roles_hierarchy')->getRoles($role);

//$form = $this->createForm(new ProfileFormType($roles), $user);
$form = $this->createFormBuilder($user)
->add('username')
->add('joinat', 'date', array('widget' => 'single_text', 'read_only' => true))
->add('viewname')
->add('firstname')
->add('lastname')
->add('birthday', 'birthday', array('widget' => 'single_text', 'read_only' => true))
->add('email', 'email')
->add('type', 'text', array('read_only' => true))
->add('roles','choice', array('choices' => $roles, 'multiple' => true, 'expanded' => true))
->getForm();

$form->setData($user);
if ('POST' == $request->getMethod()) {
$form->bindRequest($request);

$userManager = $this->get('fos_user.user_manager');
if ($form->isValid()) {

$em = $this->getDoctrine()->getEntityManager();
$em->persist($form->getData());
$em->flush();
$this->setFlash('fos_user_success', 'profile.flash.updated');

return new RedirectResponse($this->generateUrl('back_member_information', array('id' => $user->getId())));
}
}

return array('form' => $form->createView(), 'id' => $user->getId());
}
}

```

`back_member_information` route is missing in auto-completion, but if I comment the content of the `editAction` method, then rename the route `back_member_information_bis`, this new route appears.

I uncomment the method and rename the route `back_member_information`, this route appears and `back_member_information_bis` doesn't desappear.

I have others controllers defined with route annotation in the same directory and its routes appear.