How can you create a 'hasOne' association based on a 'belongsToMany' one in CakePHP 4.4.x?

26 Views Asked by At

I'm trying to create an association that I can use, where I get all the Courses of a particular Student, and another association which gives me the Course with the.. smallest average grade, let's say. Is it possible to do it in cake 4.4.x ?

I've tried to create a finder but I don't know how to access the parent entity attributes.

0

There are 0 best solutions below