Open jensschuppe opened 2 years ago
ManagedEntities have been around for longer than the CustomDataHelper, but have (had?) a couple of drawbacks and instabilities. I wouldn't want to switch unless we're sure they're gone.
Also, the CustomDataHelper offers additional functions, such as the APIv3 access to those custom fields. I have no idea whether this will be obsolete with APIv4.
My recommendation would be to use APIv4 and ManagedEntities for all new projects. I'm not sure what drawbacks you mean specifically @bjendres but the APIv4 flavor of managed entities is pretty good IMO. A lot of the issues with the v3 managed entities have been solved. Obviously you'll need to keep this extension around for a while for legacy support.
It seems to me that this might become obsolete when you use CiviCRM's managed entities for synchronising custom data (or any other CiviCRM entities).
There even seems to be a very easy way of generating managed entities via the APIv4 explorer, as @colemanw pointed out in systopia/de.systopia.eck#32.
Also, APIv4 comes with much better accessibility for code that needs to translate custom field names into IDs and vice versa, so that part of Custom-Date-Helper doesn't seem to provide that much benefit anymore either.