CRM_Core_DAO has a fallback function for entities with no foreign key fields.
Previously, that function did not call createReferenceColumns or fire links_callback
/**
* Returns list of FK relationships.
*
- *
* @return CRM_Core_Reference_Basic[]
*/
public static function getReferenceColumns() {
- return [];
+ if (!isset(Civi::$statics[static::class]['links'])) {
+ Civi::$statics[static::class]['links'] = static::createReferenceColumns(static::class);
+ CRM_Core_DAO_AllCoreTables::invoke(static::class, 'links_callback', Civi::$statics[static::class]['links']);
+ }
+ return Civi::$statics[static::class]['links'];
}
/**