Skip to content
Snippets Groups Projects
Unverified Commit 8f3b1e81 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #17239 from colemanw/fixSchemaMap

APIv4 - Fix schema map to use canonical field names
parents ccc8a89a 60677581
Branches
Tags
No related merge requests found
......@@ -70,8 +70,8 @@ class SchemaMapBuilder {
/** @var \CRM_Core_DAO $daoName */
foreach (AllCoreTables::get() as $daoName => $data) {
$table = new Table($data['table']);
foreach ($daoName::fields() as $field => $fieldData) {
$this->addJoins($table, $field, $fieldData);
foreach ($daoName::fields() as $fieldData) {
$this->addJoins($table, $fieldData['name'], $fieldData);
}
$map->addTable($table);
if (in_array($data['name'], $this->apiEntities)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment