please could someone have a look on my probabely simple problem? I have three tables: People, Rulings and Direps_Rulings, where direp is and alias for a person from People table.
I created a testing debug function in my SubjectsController.php which should list all people, who are related to subject through rulings for a given subject id:
Seems Cake thinks that something is supposed to be an integer field, but it’s a string. Any chance you recently changed an integer field in the database to a string, but didn’t clear the ORM cache after doing so?
Thank you @Zuluru for your help. Finally, the error was in 'conditions' =>['People.id' =>'dirrul.direp_id']; It should be: 'conditions' =>'People.id =dirrul.direp_id'; Here is the solution:
So, I guess since user_looser is building the database, it’s not a problem to do the renaming?
As I replied in the other post, my advice is to focus on the database and do multiple runs of the bake-command until you’re stuck on functionality (Think you still have to get the subjects into the play?).
There won’t be bugs, code is on the place where it has to be (e.g. joins in models), you can show your boss a first take of the app.
At that point there will be the need for more functionality (e.g. authentication etc.), at that point you can start work on that.
Just pointing to this because I hope you will keep liking CakePHP. Working several days on a join wouldn’t make me happy.