CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • results of CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity )
Pages: [1]

Author Topic: results of CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity )  (Read 830 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
results of CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity )
June 20, 2009, 02:16:44 pm
Hi there,

CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity ) function returns

Array ( [1_428] => [2_428] => [3_428] => [4_428] => [73] => 4 [74_3] => [75_3] => [77_3] => mcnaughty.com, slingshot.co.nz [78] => hotmail.com )

The key for the single fields (ie. 73) is the value form civicrm_custom_field[id] but for the multiple fields there is a second value appended which I believe identifies the custom data group but I can't figure out where the value comes from as it is not the ID of the civicrm_custom_group.

Can you point me to the database field that is the basis for the second part of the key (ie. the _428 or _3)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: results of CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity )
June 21, 2009, 01:38:10 am
OK - I get it - the 428 number isn't an id in any table anywhere, it's just the id for the fields in that custom data group as they relate to that entity across the different custom value tables
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • results of CRM_Core_BAO_CustomValueTable::getEntityValues($employerEntity )

This forum was archived on 2017-11-26.