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

Model only properties should be settable only from non-entity #940

Merged
merged 2 commits into from
Dec 3, 2021

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Dec 3, 2021

No description provided.

@@ -380,14 +380,10 @@ public function compare($value, $value2): bool
return $this->getValueForCompare($value) === $this->getValueForCompare($value2);
}

public function getReference(Model $entity = null): ?Reference
public function getReference(): ?Reference
Copy link
Member Author

Choose a reason for hiding this comment

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

Reference is model only, accepting entity was non-sense

@mvorisek mvorisek added the RTM label Dec 3, 2021
@mvorisek mvorisek force-pushed the no_set_of_model_fields_on_entity branch from 8855c9f to db6b8c2 Compare December 3, 2021 23:27
@mvorisek mvorisek merged commit fabcdcb into develop Dec 3, 2021
@mvorisek mvorisek deleted the no_set_of_model_fields_on_entity branch December 3, 2021 23:28
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.

1 participant