CodeIgniter Forums
Database relationships - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Database relationships (/thread-68596.html)



Database relationships - Martin7483 - 08-02-2017

Hi,

When using one of the following relationships between models ;
  • one to one
  • many to one
  • one to many

If I would like my query to return all records including the relations is this statement true or false?

Statement:
All three types use a single JOIN clause to return all records including the relations


RE: Database relationships - PaulD - 08-02-2017

True (IMHO)