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

Allow Model::getUserActions() to be called only on model #947

Merged
merged 7 commits into from
Dec 31, 2021

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Dec 31, 2021

related with #943

Calling Model::getUserActions() on entity might have small negative impact and in most cases it is unneded/unwanted.

If action for entity is rellay wanted/needed, it can be always get using Model::getUserAction($name) or even with UserAction::getActionForEntity when the $name is not known (easily gettable).

@mvorisek mvorisek merged commit 4cc86e3 into develop Dec 31, 2021
@mvorisek mvorisek deleted the getUserActions_on_model_only branch December 31, 2021 17:12
@mvorisek mvorisek changed the title Allow Model::getUserActions() to be called only on Model Allow Model::getUserActions() to be called only on model Dec 31, 2021
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.

1 participant