title: Column not found error in Criteria
body: <p>I'm working on a symfony project and i need to query a many to many relationship, so i made this criteria based function to query the database:</p>
  
  <pre><code>    //Create Criteria Object
      $c1 = new Criteria();
      //Selecting the rows in the link table that matches the Table1 id (parameter)
      $c1-&gt;add(LinktablePeer::TBL1_CODIGO,$parameter,Criteria::EQUAL);
      //Selecting the rows in Table2 that matched with the last query
      $c1-&gt;addJoin(LinktablePeer::TBL2_CODIGO,Table2Peer::TBL2_CODIGO);
      $list = LinktablePeer::doSelect($c1);
  </code></pre>
  
  <p>but it throws me this strange error</p>
  
  <blockquote>
    <p>[wrapped: SQLSTATE[42S22]: Column not found: 1054 Unknown column
    'link_table.ID' in 'field list']</p>
  </blockquote>
  
  <p>Is strange because i have no column named ID in that table. Why is this happening? How can i fix it? </p>
  
  <h2>The question in other words:</h2>
  
  <p>Is there an option for the <code>php symfony propel:build-model</code> command that prevents generating the "ID" column for those tables that don't have a primary key?
  Thank you for your time ;)</p>