[Solved] Where I should put the model creation code? [closed]
I would choose Factory. With this pattern you can easily create your new object and along with it anything you need. You juste need to pass the right parameters to your service. check these docs for creating Factory pattern in SYmfony https://symfony.com/doc/current/service_container/factories.html solved Where I should put the model creation code? [closed]