title: How to avoid duplicate products with Product hasOne Offer?
body: <p>I have two models Products and Offers. Products hasOne Offer. Models are binded with</p>
  
  <pre><code>//Product model:
  hasOne
    Offer
       foreignKey =&gt; false
       conditions =&gt; array(Product.productnumber = Offer.productnumber) // Just normal fields
  
  //Offer model:
  belongsTo
      Product
  </code></pre>
  
  <p>There can be many offers with same Offer.productnumber and different Offer.price. What I want to do is find all products so that there is only one offer present with cheapest Offer.price. But now when I trying to do that I get as many duplicate Products as there is Offers with same productnumber. How to avoid this?</p>
  
  <p>I have also seen this: <a href="https://stackoverflow.com/questions/4047737/hasmany-reduced-to-hasone-in-cakephp">hasMany reduced to hasOne in CakePHP</a> But no luck with containable.</p>
  
  <p>Is only (easiest) option to get separate arrays and then combine them "manually"?</p>