A warning message does mean that the logic should be placed in one model function, but not necessarily more complex. To avoid duplication of the model and / or problems with the bold model, you may need to introduce additional classes that the model relies on.
Yes, the operation of the control is to call the functions of the model, but only in the form of a thin veneer in accordance with this guide to inspect one function of the model for the action of the controller except for the initial creation / search.
I'm not sure I understand your comment about code duplication in your controller if you move functions back, since you can always introduce general functions at the controller level. But then again, this is not the recommended “thin controller” and “reasonably thin model” approach with supporting classes as needed.
source share