Merge pull request #24140 from eileenmcnaughton/invoice_test
[civicrm-core.git] / Civi / Api4 / EntityFinancialAccount.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11 namespace Civi\Api4;
12
13 /**
14 * EntityFinancialAccount. Joins financial accounts to financial types.
15 *
16 * @see https://docs.civicrm.org/dev/en/latest/financial/financialentities/#financial-accounts
17 *
18 * @ui_join_filters account_relationship
19 *
20 * @searchable bridge
21 * @since 5.37
22 * @package Civi\Api4
23 */
24 class EntityFinancialAccount extends Generic\DAOEntity {
25 use Generic\Traits\EntityBridge;
26
27 /**
28 * @return array
29 */
30 public static function getInfo() {
31 $info = parent::getInfo();
32 $info['bridge'] = [
33 'entity_id' => ['to' => 'financial_account_id'],
34 'financial_account_id' => ['to' => 'entity_id'],
35 ];
36 return $info;
37 }
38
39 }