Skip to content

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

Merged
mvorisek merged 7 commits intodevelopfrom
getUserActions_on_model_only
Dec 31, 2021
Merged

Allow Model::getUserActions() to be called only on model#947
mvorisek merged 7 commits intodevelopfrom
getUserActions_on_model_only

Conversation

@mvorisek
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

1 participant