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