tattersoftware / codeigniter4-relations

Entity relationships for CodeIgniter 4
MIT License
87 stars 20 forks source link

Not working relations #26

Closed ridoananda closed 2 years ago

ridoananda commented 3 years ago

Sorry bro, why i always error when chain the method with() Error: table t1 no related to table t2 I have use ModelTrait in my model but it same:(

MGatner commented 3 years ago

If the tables are indeed related then your schema is likely incorrect. Check out https://github.com/tattersoftware/codeigniter4-schemas for how to configure it. You might be interested in this thread on creating specific relations: https://github.com/tattersoftware/codeigniter4-schemas/issues/19

MGatner commented 2 years ago

Closing as stale. Please reopen with more evidence if the issue persists.