Reduce the number of additional Queries to 0 by overriding functions in the base model
- by user334017
my basic database setup is:
User:...
Info:
relations:
User: { foreignType:one }
When displaying information on the user it takes: 1 query to find info on the user, and 1 query to find additional info
I want to reduce this to one query that finds both, I assume I need to override a function from BaseUser.class.php, or something along those lines but I'm not really sure what to do.
Thanks!