/** * Counts all many-to-many associated AttributeValuesAsMultiple * @return int */ public function CountAttributeValuesAsMultiple() { if (is_null($this->intId)) { return 0; } return AttributeValue::CountByAttributeOptionAsMultiple($this->intId); }