/** * Counts all associated AttributeValuesAsSingle * @return int */ public function CountAttributeValuesAsSingle() { if (is_null($this->intId)) { return 0; } return AttributeValue::CountBySingleAttributeOptionId($this->intId); }