コード例 #1
0
 function getReferencingColumn($name, $table)
 {
     if ($table === 'employees' and $name === 'salaries') {
         return 'emp_no';
     }
     if ($table === 'employees' and $name === 'dept_emp') {
         return 'emp_no';
     }
     return parent::getReferencingColumn($name, $table);
 }