(08-27-2018, 01:30 PM)albertleao Wrote: (08-27-2018, 01:20 PM)skunkbad Wrote: (08-27-2018, 09:33 AM)albertleao Wrote: ...
such as a single database table.
...
THIS
Although, you could have a model for a group of related tables, if you choose. I do this for authentication, because the tables are all related, and most don't need their own model.
Personally, I find it a lot easier and more organized to keep my models in a 1 to 1 relationship with database tables, then if I have some functionality I want to reuse that uses multiple models, I create a library. I find it easier to test as well since you can easily inject stubs for models in the library.
So then how do you handle joins?