/** * Counts all many-to-many associated GrowthGroupStructuresAsGroupstructure * @return int */ public function CountGrowthGroupStructuresAsGroupstructure() { if (is_null($this->intId)) { return 0; } return GrowthGroupStructure::CountByGroupRegistrationsAsGroupstructure($this->intId); }