Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
What is the efficient way to test if a relation exist
I have a badges table with a has_many relation to a user_badges table. When I fetch the data from the badges table, I'd like to know if a relation exist for each of the record, i.e. is the badge used by a user? I don't need the user_badges data and I don't want to retrieve it all because that would amount to a huge dataset.
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share