atk4 / data

Data Access PHP Framework for SQL & high-latency databases
https://atk4-data.readthedocs.io
MIT License
273 stars 46 forks source link

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

Closed mvorisek closed 2 years ago

mvorisek commented 2 years ago

related with https://github.com/atk4/data/pull/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).