Merge pull request #22899 from civicrm/5.48
[civicrm-core.git] / Civi / Api4 / EntityFinancialAccount.php
CommitLineData
37c608f6 1<?php
37c608f6 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 */
37c608f6 11namespace 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 *
37c608f6 18 * @ui_join_filters account_relationship
19 *
c5076889 20 * @searchable bridge
d44cc3cb 21 * @since 5.37
37c608f6 22 * @package Civi\Api4
23 */
24class EntityFinancialAccount extends Generic\DAOEntity {
25 use Generic\Traits\EntityBridge;
26
27d31a0f
CW
27 /**
28 * @return array
29 */
30 public static function getInfo() {
31 $info = parent::getInfo();
32 $info['bridge'] = [
63f3df59
CW
33 'entity_id' => ['to' => 'financial_account_id'],
34 'financial_account_id' => ['to' => 'entity_id'],
27d31a0f
CW
35 ];
36 return $info;
37 }
38
37c608f6 39}