Skip to content

Commit

Permalink
Merge pull request #16925 from pradpnayak/pseudoCon
Browse files Browse the repository at this point in the history
Added pseudoconstant for acl_id
  • Loading branch information
seamuslee001 authored Mar 30, 2020
2 parents 3f75e5d + 1906ff5 commit 2d929df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CRM/ACL/DAO/ACLCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/ACL/ACLCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:6c22da308c28e1b6766087c3073112a0)
* (GenCodeChecksum:976ef3393c10c32cacd6c6405b892533)
*/

/**
Expand Down Expand Up @@ -111,6 +111,9 @@ public static function &fields() {
'bao' => 'CRM_ACL_DAO_ACLCache',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
'html' => [
'type' => 'EntityRef',
],
],
'acl_id' => [
'name' => 'acl_id',
Expand All @@ -124,6 +127,11 @@ public static function &fields() {
'bao' => 'CRM_ACL_DAO_ACLCache',
'localizable' => 0,
'FKClassName' => 'CRM_ACL_DAO_ACL',
'pseudoconstant' => [
'table' => 'civicrm_acl',
'keyColumn' => 'id',
'labelColumn' => 'name',
],
],
'modified_date' => [
'name' => 'modified_date',
Expand Down
8 changes: 8 additions & 0 deletions xml/schema/ACL/Cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<title>Cache Contact</title>
<type>int unsigned</type>
<comment>Foreign Key to Contact</comment>
<html>
<type>EntityRef</type>
</html>
<add>1.6</add>
</field>
<foreignKey>
Expand All @@ -38,6 +41,11 @@
<type>int unsigned</type>
<required>true</required>
<comment>Foreign Key to ACL</comment>
<pseudoconstant>
<table>civicrm_acl</table>
<keyColumn>id</keyColumn>
<labelColumn>name</labelColumn>
</pseudoconstant>
<add>1.6</add>
</field>
<foreignKey>
Expand Down

0 comments on commit 2d929df

Please sign in to comment.