Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIv4 - Remove implicit multi joins & add explicit joins #17332

Merged
merged 6 commits into from
May 19, 2020

Conversation

colemanw
Copy link
Member

Overview

Changes the way joins are done in APIv4.

Before

One-to-many joins were implied using dot notation, which triggered a secondary query to run after the main query.

After

Implicit multi-joins have been removed.
Joins can now be done on any table by explicitly specifying a join param.
Implicit one-to-one joins are not affected.

OptionValue joins were deprecated in favor of pseudoconstant suffixes. This removes them.
@civibot
Copy link

civibot bot commented May 15, 2020

(Standard links)

@civibot civibot bot added the master label May 15, 2020
colemanw added 4 commits May 15, 2020 13:00
These were actually run as a separate query and "joined" to the main results array in PHP.
Removing them to make way for supporting explicit multi-joins which will use SQL.
This event was defined but never invoked.
@eileenmcnaughton eileenmcnaughton merged commit bd3efe7 into civicrm:master May 19, 2020
@eileenmcnaughton eileenmcnaughton deleted the api4Joins branch May 19, 2020 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants