/** * Returns foreign keys and entity references * * @return array * [CRM_Core_Reference_Interface] */ static function getReferenceColumns() { if (!self::$_links) { self::$_links = static::createReferenceColumns(__CLASS__); self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName(), 'supporter_profile_id', 'civicrm_uf_group', 'id'); self::$_links[] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table'); self::$_links[] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'target_entity_id', NULL, 'id', 'target_entity_type'); } return self::$_links; }
/** * return foreign links * * @access public * @return array */ function links() { if (!self::$_links) { self::$_links = array('supporter_profile_id' => 'civicrm_uf_group:id'); } return self::$_links; }
/** * return foreign keys and entity references * * @static * @access public * @return array of CRM_Core_EntityReference */ static function getReferenceColumns() { if (!self::$_links) { self::$_links = array(new CRM_Core_EntityReference(self::getTableName(), 'supporter_profile_id', 'civicrm_uf_group', 'id'), new CRM_Core_EntityReference(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table'), new CRM_Core_EntityReference(self::getTableName(), 'target_entity_id', NULL, 'id', 'target_entity_type')); } return self::$_links; }