View Single Post
  #1 (permalink)  
Old 04-09-2008, 10:56 PM
Lagaffe Lagaffe is offline
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default query with 2 or more tables

I've created several classes by extending Zend_Db_Table_Abstract and I would like to get data out of 2 or more tables in 1 statement.

I know how to do this in SQL but I would like to know how to do this without using SQL and by using the classes that I've made.

Like this but then with 2 or more tables...

$table = new User();
$select = $table->select()->where('id_user = ?', $user);
$getUserDetails = $table->fetchRow($select);
Reply With Quote