<?php
-
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
namespace Civi\Api4;
/**
*/
class EntityFinancialTrxn extends Generic\DAOEntity {
use Generic\Traits\EntityBridge;
- use Generic\Traits\ReadOnly;
+ use Generic\Traits\ReadOnlyEntity;
/**
* @return array
public static function getInfo() {
$info = parent::getInfo();
$info['bridge'] = [
- 'entity_id' => [],
- 'financial_trxn_id' => [],
+ 'entity_id' => ['to' => 'financial_trxn_id'],
+ 'financial_trxn_id' => ['to' => 'entity_id'],
];
return $info;
}