Skip to content

Commit

Permalink
Merge pull request #17239 from colemanw/fixSchemaMap
Browse files Browse the repository at this point in the history
APIv4 - Fix schema map to use canonical field names
  • Loading branch information
colemanw authored May 6, 2020
2 parents ccc8a89 + 6067758 commit 8f3b1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Civi/Api4/Service/Schema/SchemaMapBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ private function loadTables(SchemaMap $map) {
/** @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)) {
Expand Down

0 comments on commit 8f3b1e8

Please sign in to comment.