Quote:
Originally Posted by notrub225
|
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