title: custom action in SonataAdminBundle
body: <p>On this <a href="http://sonata-project.org/bundles/admin/2-0/doc/reference/routing.html#create-a-route">page</a> I found how to add route for my custom action. </p>
  
  <pre><code>protected function configureRoutes(RouteCollection $collection) {
      $collection-&gt;add('ispremium', $this-&gt;getRouterIdParameter().'/ispremium'); 
  }
  </code></pre>
  
  <p>After that I add custom action in my Admin class:</p>
  
  <pre><code>protected function configureListFields(ListMapper $listMapper)
  {
      $listMapper
          -&gt;addIdentifier('id')
          -&gt;add('code', null, array('label' =&gt; 'Code'))
          -&gt;add('_action', 'actions', array( 
              'actions' =&gt; array(  
                  'ispremium' =&gt; array(
                      'template' =&gt; 'AppMyBundleBundle:Admin:ispremium.html.twig'
                  )
              )
          ))
      ;
  }
  </code></pre>
  
  <p>It generated  url like this: </p>
  
  <pre><code>/app_dev.php/admin/mobispot/discodes/discode/300876/ispremium
  </code></pre>
  
  <p>My template for this link:</p>
  
  <pre><code>&lt;a href="{{ admin.generateObjectUrl('ispremium', object) }}"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>I dont' know how to solve this problems:</p>
  
  <ol>
  <li><p>How to define custom controller for that route pass?
  Now I have an error:</p>
  
  <p>Method "Sonata\AdminBundle\Controller\CRUDController::ispremiumAction" does not exist.</p></li>
  <li><p>Can I change generated url with generateUrl method?</p></li>
  </ol>