Skip to content

Allow Model::isset/getPersistence() calls on model only#1088

Merged
mvorisek merged 5 commits intodevelopfrom
no_entity_persistence_methods
Feb 10, 2023
Merged

Allow Model::isset/getPersistence() calls on model only#1088
mvorisek merged 5 commits intodevelopfrom
no_entity_persistence_methods

Conversation

@mvorisek
Copy link
Copy Markdown
Member

Currently Model is tightly coupled with one persistence.

persistence getters on entity are not wanted and $this->_persistence in $entity->getPersistence() was fetched using __get

@mvorisek mvorisek marked this pull request as ready for review January 24, 2023 15:09
@mvorisek mvorisek force-pushed the no_entity_persistence_methods branch from 0be6ba1 to ac9dcd6 Compare January 24, 2023 15:18
@mvorisek mvorisek force-pushed the no_entity_persistence_methods branch from d4ec429 to e3079d3 Compare January 24, 2023 15:24
@mvorisek mvorisek requested a review from mkrecek234 February 1, 2023 12:53
Copy link
Copy Markdown
Contributor

@mkrecek234 mkrecek234 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 merged commit dfa5de5 into develop Feb 10, 2023
@mvorisek mvorisek deleted the no_entity_persistence_methods branch February 10, 2023 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants