title: Yii2 - hasOne with leftJoin
body: <p>I am trying to add <strong>leftJoin</strong> to the <strong>hasOne</strong> method, but it seems that it is not working. Data from the main table is there, but not from the joined table. Code:</p>
  
  <pre><code>public function getUser()
      {
          return $this-&gt;hasOne(UserKeys::classname(), ['id' =&gt; 'userKey_id'])
              -&gt;leftJoin('users', 'users.id = userKeys.user_id');
      }
  </code></pre>