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

Use Model for Join write operations #960

Merged
merged 19 commits into from
Jan 21, 2022
Merged

Use Model for Join write operations #960

merged 19 commits into from
Jan 21, 2022

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Jan 13, 2022

take advantage of #946 and #961

and fix #955 (model is still faked, or Model\Join::createFakeForeignModel() method needs to be overridden to return non-faked model with real hooks)

@mvorisek mvorisek force-pushed the model_join branch 7 times, most recently from 73f2c4d to ec9b725 Compare January 16, 2022 15:04
@mvorisek mvorisek force-pushed the model_join branch 2 times, most recently from 7084258 to d91be39 Compare January 16, 2022 15:15
@mvorisek mvorisek changed the title Use Model instead of string table in Join Use Model for Join write operations Jan 16, 2022
* Create fake foreign model, in the future, this method should be removed
* in favor of always requiring an object model.
*/
protected function createFakeForeignModel(): Model
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI if foreign model hooks needs to be executed, override this method to provide non-faked Model for $this->foreign_table table

@mvorisek mvorisek marked this pull request as ready for review January 16, 2022 16:42
@mvorisek mvorisek force-pushed the model_join branch 2 times, most recently from 41eb3ab to 8e96c32 Compare January 17, 2022 11:52
Copy link
Member

@DarkSide666 DarkSide666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvorisek mvorisek force-pushed the model_join branch 5 times, most recently from 6bf1018 to b3000b3 Compare January 21, 2022 13:17
@mvorisek mvorisek force-pushed the model_join branch 2 times, most recently from 9c624eb to 11baf74 Compare January 21, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Join class must not update with DSQL to trigger Model hooks
2 participants