systopia / de.systopia.resource

CiviCRM extension to specify generic resources
Other
5 stars 4 forks source link

Use callback instead of buildOptions for Resource.entity_table #33

Open colemanw opened 1 month ago

colemanw commented 1 month ago

In Civi 5.79+, BAO::buildOptions functions are no longer supported. In this case it looks to be easily replaceable as a callback tag.

This diff is a little noisy due to some harmless updates from calling civix generate:entity-boilerplate. It looks like it's been a while since that was done, so as a followup I would recommend doing that for all the dao files (I only committed the relevant update to CRM_Resource_DAO_Resource but there are pending updates needed for all of them).

colemanw commented 1 month ago

@jensschuppe this should be safe & backward-compat and will improve compatibility with future versions.