/** * Counts all many-to-many associated GrowthGroupStructures * @return int */ public function CountGrowthGroupStructures() { if (is_null($this->intGroupId)) { return 0; } return GrowthGroupStructure::CountByGrowthGroup($this->intGroupId); }