View Single Post
  #1 (permalink)  
Old 02-24-2008, 08:37 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
Post Zend_Db_Table queries containing the table name preparing for joins

I would like to see Zend_Db_Table to query everything with the table name. I want a find($my_id) result in a: "SELECT `table_name`.* FROM `table_name` WHERE `table_name`.`primary_key_id` = '$my_id'"

Is there a reason not to incorporate the table name into the default queries? This allows for flexibility in future joins where there might be a second table with the same column name as the primary_key_id in the main table.
Reply With Quote