title: PhalconPHP how to condition findFirst by join data
body: <p>I have two tables:</p>
  
  <pre><code>AuctionPackage
  $this-&gt;belongsTo('id', 'AuctionPackageTranslation', 'auction_package_id', NULL);
  </code></pre>
  
  <p>and another one</p>
  
  <pre><code>AuctionPackageTranslation
  $this-&gt;belongsTo('auction_package_id', 'AuctionPackage', 'id', NULL);
  </code></pre>
  
  <p>Now, when I do</p>
  
  <pre><code>$auction_order = AuctionOrder::findFirstByid($id);
  </code></pre>
  
  <p>I get all the correct data and in Volt I have access to the translation. But, I want to use findFirst instead of findFirstByid and do a condition, if one of the field in the joined language table has a ceratain value.</p>
  
  <p>Like so:</p>
  
  <pre><code>    $auction_package = AuctionPackage::findFirst(array(
              "auction_package_translation.lang_id = '{$lang}'",
              "id = {$id}"
          ));
  </code></pre>
  
  <p>And I get error:</p>
  
  <pre><code>*Unknown model or alias 'auction_package_translation' (1), when preparing: SELECT [AuctionPackage].* FROM [AuctionPackage] WHERE auction_package_translation.lang_id = 'de' LIMIT ?1*
  </code></pre>
  
  <p>Does findFirst not join the tables and findFirstByid ? How can I condition something to joined table?</p>