title: Additional criteria to symfony filter
body: <p>i'm working on a symfony project to manage a database. First i explain how it works:</p>
  
  <p>In the database, all elements are associated to an unique element 'scene'. When a user accesses the application, chooses what scene he wants to see (it saves that in a user parameter). So when listing elements, the application should only list elements associated with the scene selected by the user.</p>
  
  <p>*Note: all elements have an scene attribute in the table definition.</p>
  
  <p>So my problem comes here:</p>
  
  <p>I developed a listing of an element entities using the help of a sfPropelPager class to paginate. Also added some filters to search in the list, and for that i used the filter system provided by symfony (<code>&lt;element&gt;FormFilter.class.php</code> and stuff). </p>
  
  <p>Now i want the list to not show elements from other scenes than the selected by the user.</p>
  
  <p>How can i do to add additional criteria to the criteria given by the filter class?
  or How would you solve the problem?</p>
  
  <h2>here is my action code:</h2>
  
  <pre><code>  public function executeUnidadfilter(sfWebRequest $request){
      $this-&gt;filter = new BaUnidadorganizativaTblFormFilter();
      $c = $this-&gt;filter-&gt;getCriteria();
      $this-&gt;filter-&gt;bind($request-&gt;getParameter($this-&gt;filter-&gt;getName()));
      if($this-&gt;filter-&gt;isValid()){
        $this-&gt;pager = new sfPropelPager('BaUnidadorganizativaTbl',$this-&gt;sfPropelPagerLines);
        echo $this-&gt;getUser()-&gt;getEscenario();
        $this-&gt;pager-&gt;setCriteria($c);
        $this-&gt;pager-&gt;init();
     }else{
        $this-&gt;pager = new sfPropelPager('BaUnidadorganizativaTbl',$this-&gt;sfPropelPagerLines);
        $this-&gt;pager-&gt;init();
     }
     $this-&gt;setTemplate('Unidadlist');
   }
  </code></pre>
  
  <p>*Note: 'scene' mentioned below is Escenario in the code</p>
  
  <p>thank you very much for your time</p>