Groups -> (HAS_MANY) Labels -> (HAS_MANY) attributes
To get the groups with their labels I would use:
Model_name::model()->with ('labels')->findAll()Is there a way to retrieve all records (groups+labels+attributes)?
Posted 16 October 2009 - 11:38 PM
Model_name::model()->with ('labels')->findAll()
Posted 18 October 2009 - 05:37 AM
Groups::model()->with ('labels', 'labels.attribs')->findAll()
Posted 19 October 2009 - 03:07 AM
Groups::model()->with ('labels.attribs')->findAll()