title: Using KnpMenuBundle in Symfony2 for menu of Entities?
body: <p>I have a <code>User</code> entity and all users have many <code>Category</code> entities.  I have a controller which accepts a <code>Category</code> slug as a parameter.</p>
  
  <p>I would like to render a menu that lists all of the <code>Category</code>'s of a <code>User</code> as links to that controller.  I would also like to mark one as "current" if they are on that page already.</p>
  
  <p>The KnpMenuBundle looks nice for this <a href="https://github.com/KnpLabs/KnpMenuBundle/blob/master/Resources/doc/index.md" rel="nofollow">https://github.com/KnpLabs/KnpMenuBundle/blob/master/Resources/doc/index.md</a></p>
  
  <p>But all of its examples use a static menu that is built up, rather than building the menu from dynamic items.  <strong>I thought about getting the items in the <code>Builder</code>, but I already have them in the controller that ultimately renders the twig template, so I would rather somehow pass these <code>Category</code>'s to the <code>Builder</code> and let it handle rendering a menu.</strong></p>
  
  <p>What is the best way to do this?</p>
  
  <p>My other idea is to just do the menu myself in twig, but I would need extra logic to determine which page is "current"</p>