title: Cakephp 3.4 - Usage of setMatching() and getMatching()
body: <p>I have upgraded to CakePHP 3.4 and I’m checking through the 3.4 deprecation list, the migration guide says <em>getMatching() will have to be called after setMatching() to keep the old behavior</em>  I'm confused and couldn’t find any documentation on sample on setMatching() and getMatching() functions. How or where should I declare setMatching(). Can anybody please point out to me how do I rewrite the below code using setMatching and getMatching:</p>
  
  <pre><code>TableRegistry::get('Students')-&gt;find()
          -&gt;distinct([ 'Students.id'])
          -&gt;matching('Studentclassrooms.Classrooms',
                function ($q) use ( $classid ){
                     return $q-&gt;where([ 'Classrooms.id' =&gt; $classid ]);
                });
          -&gt;enableAutoFields(true);
  </code></pre>
  
  <p>When I tried the below, I get the error</p>
  
  <blockquote>
    <p>Unknown method "setMatching”</p>
  </blockquote>
  
  <pre><code>TableRegistry::get('Students')-&gt;find()
          -&gt;distinct([ 'Students.id'])
          -&gt;setMatching('Studentclassrooms.Classrooms',
                function ($q) use ( $classid ){
                      return $q-&gt;where([ 'Classrooms.id' =&gt; $classid ]);
                })
          -&gt;getMatching()
          -&gt;enableAutoFields(true);
  </code></pre>