Questions tagged [symfony4]

Symfony is a PHP framework developed by SensioLabs. Symfony 4 was released November 2017.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

How to have better performance of code insert many to many relation

I want improve performance of this code. One product or residence have multiple criterion wich have criterion have multiple criterion value. public function createOrUpdateCriteriaIfEntityUpdated( ...
4
votes
1answer
105 views

How to refactor Symfony 5 controller to comply with SOLID design principles

I am trying to create this API endpoint that will accept JSON payload and will calculate quote based on provided factors and their ratings. I have Entities that contain information about: ...
1
vote
1answer
38 views

Symfony rest endpoint for get a number products of one user

I want to improve quality of this symfony rest endpoint (solid principle, Kiss, best practice...) Can you review my code please? Symfony controllController function that return json list of product <...
3
votes
2answers
71 views

Using PHP goto Labels for code folding

I've been using PHP labels in my Controllers for code folding. PHP labels are actually used with goto statements. But I'm using labels only because it's so much ...
3
votes
0answers
84 views

Symfony 4 translate Entity fields

I have been developing multilanguage website based on Symfony4. Structure of one of the tables: ...