title: Multiple Associations to the Same Model in CakePHP 3
body: <p>I am using cakePHP version 3.x.</p>
  
  <p>When i query the MessagesTable i want to get the Users data for the the sender and the receiver of the message. I have done this many times in cakePHP 2 but i cant figure out why it isn't working in version 3.x. </p>
  
  <p>i have a UsersTable and a MessagesTable.</p>
  
  <p>UsersTable</p>
  
  <pre><code>$this-&gt;hasMany('Messages');
  </code></pre>
  
  <p>MessagesTable</p>
  
  <pre><code>$this-&gt;belongsTo('Users', [
      'foreignKey' =&gt; 'sender_id',
      'propertyName' =&gt; 'Sender',
  ]);
  $this-&gt;belongsTo('Users', [
      'foreignKey' =&gt; 'user_id',
      'propertyName' =&gt; 'Receiver'
  ]);
  </code></pre>
  
  <p>This is the query i am using</p>
  
  <pre><code>$messages = $this-&gt;Messages-&gt;find()
          -&gt;where(['Messages.user_id' =&gt; $this-&gt;Auth-&gt;user('id')])
          -&gt;orwhere(['Messages.sender_id' =&gt; $this-&gt;Auth-&gt;user('id')])
          -&gt;order(['Messages.created' =&gt; 'DESC'])
          -&gt;contain([
              'Users.Pictures',
          ]);
  </code></pre>
  
  <p>I am getting the Receiver data back but not the Sender data as well. Any help would be really appreciated</p>