title: Symfony2 DoctrineBehaviors, JordiLlonchCrudGeneratorBundle, LexikFormFilterBundle issue
body: <p>I use DoctrineBehaviors to apply translation of my entity, and JordiLlonchCrudGenerator to generate my crud, and LexikFormFilterBundle to generate my form filters type.</p>
  
  <p>My form type</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>class PageFilterType extends AbstractType
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
                  -&gt;add('title',   'filter_text')
                  -&gt;add('content', 'filter_text')
                  ;
          $listener = function(FormEvent $event)
          {
              // Is data empty?
              foreach ($event-&gt;getData() as $data) {
                  if(is_array($data)) {
                      foreach ($data as $subData) {
                          if(!empty($subData)) return;
                      }
                  }
                  else {
                      if(!empty($data)) return;
                  }
              }
  
              $event-&gt;getForm()-&gt;addError(new FormError('Filter empty'));
          };
          $builder-&gt;addEventListener(FormEvents::POST_BIND, $listener);
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When i try to filters my entities, the error said hat no field called title in Class Entity\Page.
  I understand this problem but i have no idea how to resolve this error, because the field title is into the entity PageTranslation, here my function filters :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>protected function filter()
      {
          $request = $this-&gt;getRequest();
          $session = $request-&gt;getSession();
          $filterForm = $this-&gt;createForm(new PageFilterType());
          $em = $this-&gt;getDoctrine()-&gt;getManager();
          $queryBuilder = $em-&gt;getRepository('PageBundle:Page')
                                                  -&gt;createQueryBuilder('e')
                                                  -&gt;select('e')
                                                  -&gt;where('e.deletedAt IS NULL')
                                              ;
  
          // Reset filter
          if ($request-&gt;get('filter_action') == 'reset') {
              $session-&gt;remove('PageControllerFilter');
          }
  
          // Filter action
          if ($request-&gt;get('filter_action') == 'filter') {
              // Bind values from the request
              $filterForm-&gt;bind($request);
  
              if ($filterForm-&gt;isValid()) {
                  // Build the query from the given form object
                  $this-&gt;get('lexik_form_filter.query_builder_updater')-&gt;addFilterConditions($filterForm, $queryBuilder);
                  // Save filter to session
                  $filterData = $filterForm-&gt;getData();
                  $session-&gt;set('PageControllerFilter', $filterData);
              }
          } else {
              // Get filter from session
              if ($session-&gt;has('PageControllerFilter')) {
                  $filterData = $session-&gt;get('PageControllerFilter');
                  $filterForm = $this-&gt;createForm(new PageFilterType(), $filterData);
                  $this-&gt;get('lexik_form_filter.query_builder_updater')-&gt;addFilterConditions($filterForm, $queryBuilder);
              }
          }
  
          return array($filterForm, $queryBuilder);
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I think that i should customize this line but i don't know how </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$queryBuilder = $em-&gt;getRepository('PageBundle:Page')
                                                  -&gt;createQueryBuilder('e')
                                                  -&gt;select('e')
                                                  -&gt;where('e.deletedAt IS NULL')
                                              ;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any solution for that ?</p>
  
  <p>Also, i have created a trash for each entity, for exemple if one page is deleted the user can find it on trash, </p>
  
  <p>Exemple : <a href="http://snapplr.com/snap/xxmk" rel="nofollow">http://snapplr.com/snap/xxmk</a></p>
  
  <p>So i have no problem with the action restore all, but remove all is not functional </p>
  
  <p>This is my action </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public function emptyTrashAction(){
          $em = $this-&gt;getDoctrine()-&gt;getEntityManager();
          $entities=$em-&gt;getRepository('PageBundle:Page')-&gt;findByRemoved();
          if($entities){
              foreach ($entities as $entity) {
                  $em-&gt;remove($entity);
                  $em-&gt;flush();
              }
              $this-&gt;get('session')-&gt;getFlashBag()-&gt;add('success', 'La corbeille est vide !!');
              return $this-&gt;redirect($this-&gt;generateUrl('pa_trash'));
          }else{
              $this-&gt;get('session')-&gt;getFlashBag()-&gt;add('error', 'La corbeille est déjà vide !! ');
              return $this-&gt;redirect($this-&gt;generateUrl('pa'));
          }
          
          
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>What i wanna do, is to delete all entities where the feild DeletedAt is not empty, how can i do this ?</p>
  
  <p>Thanks //</p>