title: How to create models to handle multiple tables in zend framework 2.0
body: <p>I am new to zend framework, and have straight away started with zf2.</p>
  
  <p>I am trying to build models which can handle multiple tables. I am using the following as references</p>
  
  <p>Zend Framework: Documentation: Create a Model and Database Table - Zend Framework Manual </p>
  
  <p>and </p>
  
  <p>Getting started with Zend Framework 2 (beta) – Rob Allen's DevNotes</p>
  
  <p>Now, I was successful in building a model with table gateway pattern as given in Akrabat's zf2 application.</p>
  
  <p>But table gateway pattern would only support a single table.</p>
  
  <p>So I tired to experiment with zend Dbtable so as to use zend_db_tables' relationship feature.</p>
  
  <p>In above link (quick start for models) Dbtable extends Zend_Db_Table_Abstract. Incase of zf 2.0 how can I achieve this?</p>
  
  <p>In the library folder I see zend/Db/table doesn't exist in zf 2.0.</p>
  
  <p>Thanks in advance.</p>