title: CakePHP soft deleted data still showing up in model associations
body: <p>I am using the <a href="https://github.com/evilbloodydemon/cakephp-softdeletable2" rel="nofollow noreferrer">SoftDeletableBehavior</a> for my addresses model.</p>
  <p>This sets it so when you delete an address it doesnt really delete it, instead sets a <code>deleted</code> column in the database to 1.</p>
  <p>This also changes your query in the <code>beforeFind</code> function of the Address model to only pull entries where <code>deleted != 1</code></p>
  <p>This works when I am viewing addresses via the addresses controller like <code>/addresses/show/43</code>.</p>
  <p>However my <code>Users</code> controller <code>hasMany</code> addresses. So when I am in the users controller and I call <code>$this-&gt;find('first');</code> To get the user, I also get the associated addresses. I am expecting this to NOT give me the (softly) deleted addresses but it DOES. The beforeFilter on the Address Model is never called either.</p>
  <p>What is the right way to handle this?</p>
  <hr />
  <h2>Update.</h2>
  <p>Apparently when I do this:</p>
  <pre><code>$data = $this-&gt;User-&gt;find('first',array('conditions' =&gt; array('User.id' =&gt; $id),'recursive' =&gt; 2));
      
  </code></pre>
  <p>I have a <code>$data['User]</code> array and a <code>$data['Address]</code> array (along with others).</p>
  <p>But this does not use the beforeFind filter in the Address Model. So I get the wrong data.</p>
  <p>But if I do this:</p>
  <pre><code>$data = $this-&gt;User-&gt;find('first',array('conditions' =&gt; array('User.id' =&gt; $id),'recursive' =&gt; 2));
  $data['Address'] = $this-&gt;User-&gt;Address-&gt;find('all',array('conditions'=&gt;array('user_id'=&gt;$id)));
  </code></pre>
  <p>Then it <em>does</em> use the beforeFind filter on the Address model and returns the right data.</p>
  <p>(Of course in a different format <code>[Address][0][id]</code> vs <code>[Address][0][Address][id]</code>)</p>
  <p><strong>What I do not understand is if the associated data thats pulled does not use its own model to find its data, then whats the point? Isn't this one of the main purposes of MVC?</strong></p>
  <p>Maybe I just don't understand? Or I am missing something?</p>
  <p>Can someone please enlighten me?</p>