lex0r/zendscaffolding — Issue #5: Double reference
Author: larnot
Created: 2012-02-28 04:24:50+00:00
State: open

All tables with columns like created_by and updated_by, if they are reference like

'Modified' => array(
'columns' => 'updated_by',
'refTableClass' => 'Application_Model_DbTable_User',
'refColumns' => 'user_id'
),

'Created' => array(
'columns' => 'created_by', // foreign key column
'refTableClass' => 'Application_Model_DbTable_User',
'refColumns' => 'user_id'
),

The result is duplicate column displayField of the same record, any solution? Alias or custom query?

Thanks