I'm trying to get a record from my database for a UserGroup (although I'm guessing this applies to a few scenarios really - anything that isn't a Craft Element.
I'm still new to plugin development so I could be approaching this entirely wrong but I'm pretty sure I don't want to be using
craft()->db->createCommand() because it might break in a future version of craft when the schema changes and I also can't do it by using
craft()->elements->getCriteria(ElementType::UserGroup); because it's not an element.
Is there a best practice for this?