I have a controller called NotasController that refers the table “notas” in my database. I need to build a called insertNotas that receive data from other tables to mount a select object in form. I try to search this data from the NotasController like this example:
$turmas= $this->Notas->Turmas->find('list', ['limit' => 200]);
In this case I try to get data from “turmas” table in my database, but a receive this error when access insertNotas page:
There are not foreign key between table"turmas" and table “notas”. How can I do this search?