title: CakePHP hasOne association conditions
body: <p>Hi I am building my User model to have only one profile picture, which is an example of an Image model. I want the conditions of the hasOne to only include the image where the Image.id is equal to the "picture" column in the user table. I know there is something wrong...here is the relevant part of code.</p>
  
  <pre><code>    var $hasOne = array(
              'ProfileImage' =&gt; array(
                      'className' =&gt; 'Image',
                      'conditions' =&gt; array('ProfileImage.id' =&gt; 'User.picture'),
                      'dependent' =&gt; false,
                      'foreignKey' =&gt; 'user_id',
              )
      );
  </code></pre>
  
  <p>What is wrong with my conditions? How do I specifc ProfileImage.id to be equal to the picture column in the User model? Thanks!</p>