How to force QSqlRelationalTableModel to use existing relations in MySql table?

Relations are set by QSqlRelationalTableModel->setRelation() method, but I created some tables with foreign key support (
SQL Code:
  1. FOREIGN KEY (pr_id) REFERENCES parent_table(pr_id)
To copy to clipboard, switch view to plain text mode 
)