/** * Counts all associated RoleEntityQtypeCustomFieldAuthorizations * @return int */ public function CountRoleEntityQtypeCustomFieldAuthorizations() { if (is_null($this->intEntityQtypeCustomFieldId)) { return 0; } return RoleEntityQtypeCustomFieldAuthorization::CountByEntityQtypeCustomFieldId($this->intEntityQtypeCustomFieldId); }