0
votes

I am working with a Propel query that is similar to the situation below. Can someone explain what joinSubTopic() is? I'm guessing this is an auto-generated Propel method, but I'm not quite sure how to make sense of it because I cannot find anything in the documentation with a method like that.

Query:

LectureQuery::create()->joinSubTopic()->find()

Relationship: Lecture can have more than 1 SubTopic.

SubTopic.lecture_id is a Foreign Key to Lecture.id

1

1 Answers

3
votes

This is just a basic join function auto-created when you build classes. You find it in the documentation.

These 2 calls are the same:

LectureQuery::create()->joinSubTopic()->find();
LectureQuery::create()->join('SubTopic')->find();