title: How to remove `contain()` added to the query by a behavior in Cakephp 4?
body: <p><strong>I'm looking for the way to do an equivalent to cakephp2's <code>'recursive' =&gt; -1</code> on a <code>find()</code>.</strong></p>
  <p>I have a Model <code>Categories</code> that uses the <code>TreeBehavior</code>.</p>
  <p>In my controller I get the path of the category :</p>
  <pre class="lang-php prettyprint-override"><code>// in CategoriesController.php
  $path = $this-&gt;Categories-&gt;find('path', ['for' =&gt; $id]);
  </code></pre>
  <p>But I have the error message <strong><code>Unable to load Photos association. Ensure foreign key in Categories is selected</code></strong></p>
  <p>The problem is that <code>find('path')</code> above seems to try to find as well associated Model to <code>Categories</code> as <code>Categories</code> uses another behavior (<code>AttachmentBehavior</code>) that adds <code>contain('Photos')</code> :</p>
  <pre class="lang-php prettyprint-override"><code>// in AttachmentBehavior (that is used by `CategoriesTable`)
  public function beforeFind(Event $event, Query $query, ArrayObject $options, $primary)
  {
      $query-&gt;contain('Photos');
  
      return $query;
  }
  </code></pre>
  <p>How can I remove <code>contain()</code> in <code>$this-&gt;Categories-&gt;find('path', ['for' =&gt; $id])</code>.
  Is there an option ?</p>
  <p>I tried <code>$this-&gt;Categories-&gt;find('path', ['for' =&gt; $id, 'contain' =&gt; [])</code> but I have the same error...</p>