atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io/en/stable/
MIT License
447 stars 106 forks source link

Use View::$entity property for entity access #2192

Closed mvorisek closed 8 months ago

mvorisek commented 8 months ago

In 99% cases the impact is on Form::$model property usage. Seach form->model in your codebase and replace it with form->entity.

The motivation is to simplify model/entity orientation for the developer. When Model is guaranteed to be entity only, is should never be named model.