UFJoin cannot work as a bridge because it does not connect two CiviCRM entities with each other.
So the trait wasn't doing anything except getting in the way of SearchKit being able to perform joins.
namespace Civi\Api4;
/**
- * UFMatch entity - links civicrm contacts with users created externally
+ * Matches CiviCRM contacts with their CMS user accounts
*
* @searchable secondary
* @since 5.19
* @package Civi\Api4
*/
class UFMatch extends Generic\DAOEntity {
- use Generic\Traits\EntityBridge;
}