View Single Post
  #5 (permalink)  
Old 02-28-2008, 05:40 PM
mgordon's Avatar
mgordon mgordon is offline
Junior Member
 
Join Date: Sep 2007
Location: Stockholm, Sweden
Posts: 16
Send a message via Skype™ to mgordon
Default

Quote:
Originally Posted by notrub225 View Post
I know Zend_Db_Table allows you to make joins but in the Zend_Db_Table::find() and Zend_Db_Table_Row::_getWhereQuery() function it would be good to have the primarys with the table name so that you don't an error when you have two tables with the same key.

Example:
Code:
"SELECT * FROM table_1 LEFT JOIN table_2 ON table_1.table_2_id = table_2.id WHERE id = '123'"
If table_2 has id as primary key then this will cause an error
Reply With Quote