If I make relation in Course through ->addOneToMany('lessons')->targetTable(new Lesson)
and in Lesson through ->addManyToOne('course')->targetTable(new Course)
will be perpetual cycle.
All times calls configure method for each of tables.
If uses table name it is work.
If I make relation in Course through ->addOneToMany('lessons')->targetTable(new Lesson) and in Lesson through ->addManyToOne('course')->targetTable(new Course) will be perpetual cycle. All times calls configure method for each of tables. If uses table name it is work.