Merge pull request #22667 from braders/avoid-notices-uf-settings-page
[civicrm-core.git] / Civi / Api4 / EntityFinancialAccount.php
index 4b9b3d537bf7d2a8b5861fd286ddf4020a64ab8c..4be18592aa79d8108ff5af35e1d634841048b43b 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC. All rights reserved.                        |
@@ -9,13 +8,6 @@
  | and copyright information, see https://civicrm.org/licensing       |
  +--------------------------------------------------------------------+
  */
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
 namespace Civi\Api4;
 
 /**
@@ -25,6 +17,8 @@ namespace Civi\Api4;
  *
  * @ui_join_filters account_relationship
  *
+ * @searchable bridge
+ * @since 5.37
  * @package Civi\Api4
  */
 class EntityFinancialAccount extends Generic\DAOEntity {
@@ -36,8 +30,8 @@ class EntityFinancialAccount extends Generic\DAOEntity {
   public static function getInfo() {
     $info = parent::getInfo();
     $info['bridge'] = [
-      'entity_id' => [],
-      'financial_account_id' => [],
+      'entity_id' => ['to' => 'financial_account_id'],
+      'financial_account_id' => ['to' => 'entity_id'],
     ];
     return $info;
   }