title: CakePHP 3 : Unknown method
body: <p>I am creating a function in model to find all related services.</p>
  
  <p>function in <code>ServiceCategory.php</code></p>
  
  <pre><code>class ServiceCategory extends Entity
  {
  
      public function relatedServices($id)
      {
          return $this-&gt;find('all', [
            'conditions' =&gt; [
              'where' =&gt; [
                'id !=' =&gt; $id
              ],
              'limit' =&gt; 5
            ]
          ]);
      }
  }
  </code></pre>
  
  <p>And calling in <code>ServiceCategoriesController.php</code></p>
  
  <pre><code>public function view($id = null)
      {
          $serviceCategory = $this-&gt;ServiceCategories-&gt;get($id, [
              'contain' =&gt; ['Services']
          ]);
  
          $relatedServices = $this-&gt;ServiceCategories-&gt;relatedServices($id);
  
          $this-&gt;set('serviceCategory', $serviceCategory);
          $this-&gt;set('relatedServices', $relatedServices);
          $this-&gt;set('_serialize', ['serviceCategory']);
      }
  </code></pre>
  
  <p>But it gives <code>Unknown method 'relatedServices'</code></p>
  
  <p>Is there any thing wrong I am doing ?</p>