I have this Query in Sql giving me required course_path but I am not able to implement this in Cakephp 3 although I have created relations between these tables in Cakephp Model.
SELECT c.course_path
FROM courses c
JOIN modules m ON c.id = m.course_id
JOIN topics t ON m.id = t.module_id
WHERE t.topic_name = 'test_topic'.