Add condition to Paginate in CakePHP3
<p>How can i add a condition to paginate in Cakephp3..</p>

<p>This is my code :</p>

<pre><code> $this-&gt;paginate = [
        'contain' =&gt; ['Users']
        ];
        $proprietes = $this-&gt;paginate($this-&gt;Proprietes);

        $this-&gt;set(compact('proprietes'));
        $this-&gt;set('_serialize', ['proprietes']);
</code></pre>

<p>For example Something like this:
<code>$this-&gt;paginate($this-&gt;Proprietes)-&gt;where(['status'=&gt;'pending']);</code></p>

<p>Thank you for help.</p>