Hydra Error 297 Cannot find unique constraint or primary key on referenced table .

In this blog post, let’s learn about the error message “297 Cannot find unique constraint or primary key on referenced table .” in Hydra and the description of the error.

Error Message

297 Cannot find unique constraint or primary key on referenced table .

Error Details

Referential constraints cannot cross databases. In other words, both the referenced and referencing columns (or parent and child keys) must be in the same database.