I am trying to capture the data that is selected when a user selects categories within a categories field type (handle: groups) within the Control Panel profile tab.
I was looking thru the Fields, Categories and Content services documentation in the craft docs section and I am still unsure.
I noticed when I did a var_dump of $user:
$user = UserModel::populateModel(UserRecord::model()->findById($id));
It displays the field 'groups' within the _attributeConfigs, but does not show up in private '_attributes' (Craft\BaseModel)
The other fields do show up, for example, occupation shows up within both the _attributeConfigs (its a string) and shows up in private '_attributes' (Craft\BaseModel) with a value of 'Teacher'.
I am unsure how to get the data the user selected when selecting the categories while updating their profile within the control panel.