title: CakePHP Containable on Assoicated Model
body: <p>I have a setup where there are <code>Books</code> <code>Users</code> and <code>Logs</code>. Each Log has a Book and a User and I am trying to retrieve a list of all the books regardless of the user, but then also retrieve the Logs associated with that book (recursive is set to 1), but then only retrieving the logs of the current logged in user.</p>
  
  <p>Hopefully that's clear.  I tried using Containable and like so:</p>
  
  <p><code>$this-&gt;Book-&gt;contain('Log.user_id = 2');</code></p>
  
  <p>But unfortunately this leaves out Books for which User 2 has no logs for.  Am I going about this correctly and I'm just not using containable properly, or am I doing this all wrong.</p>
  
  <p>Any help is appreciated</p>