title: Phalcon $model-find()->filter + paginate
body: <p>Having a look in the doc, this code works : </p>
  
  <pre><code>$customers = Customers::find();
  
  $numberPage = $this-&gt;request-&gt;getQuery("page", "int");
  $paginator = new Paginator(array(
      "data"  =&gt; $customers,
      "limit" =&gt; 10,
      "page"  =&gt; $numberPage
  ));
  </code></pre>
  
  <p>But this one doesn't work, and I really don't understand why</p>
  
  <pre><code>$customers = Customers::find()-&gt;filter(
    function ($customer) {
  
      // Return only customers with a valid e-mail
      if (filter_var($customer-&gt;email, FILTER_VALIDATE_EMAIL)) {
          return $customer;
      }
    }
  );
  
  $numberPage = $this-&gt;request-&gt;getQuery("page", "int");
  $paginator = new Paginator(array(
      "data"  =&gt; $customers,
      "limit" =&gt; 10,
      "page"  =&gt; $numberPage
  ));
  </code></pre>
  
  <p>Then, I get an "internal error".  Strange, $customers object seems altered.</p>
  
  <p>Any idea ?</p>
  
  <p>By advance, thank you.</p>