4,082 questions
0
votes
0
answers
17
views
Symfony 6.4 multiple connections, update not always working
I'm using Symfony 6.4 with multiple connections.
I have 2 databases (P2223 and P2324) with the same datatables struct, but with different data.
My .env:
DATABASE_URL="mysql://root:[email protected]....
0
votes
1
answer
40
views
Prevent exceptions from being displayed on the terminal in Symfony 4.4
I'm working on a Symfony 4.4 console command and I want to prevent exceptions from being displayed on the terminal. I've already set up a logger to log the exceptions, but they still appear on the ...
0
votes
1
answer
47
views
Erreur : An exception has been thrown during the rendering of a template ("Some
In my project I have members who each have different galleries. I'm looking to make a method that allows me to have all the showrooms associated with my member. I have a OneToMany relationship between ...
0
votes
0
answers
7
views
chunk.sortModules is not a function when running yarn run encore production in symfony project
i Just run $yarn run encore production
i have this error:
TypeError: chunk.sortModules is not a function
at /var/www/ppd2_orientation-paysdelaloire_f/livraisons/symfony/node_modules/@symfony/webpack-...
0
votes
0
answers
52
views
Sonata AdminType fields are not validated
I have two admins UserAdmin and UserSettingsAdmin. In the UserAdmin I added a AdminType field that embeds UserSettingsAdmin form fields:
// AppBundle\Admin\UserAdmin.php
$formMapper
->add('...
0
votes
0
answers
151
views
How to extend the Akeneo Product with a further property?
TL;DR
I got a custom Akeneo PIM bundle and want to add a new column "stock" to the product grid and onto the detail product page in the Akeneo backend. It's a new property and a new column. ...
1
vote
0
answers
34
views
Symfony/JMoseCommandScheduler: override timezone
I am using Symfony 4 with JMoseCommandScheduler, it works fine.
However, I would like to make the list of cron commands bound to a specific timezone.
Editing the bundle source code, it can be achieve ...
0
votes
0
answers
65
views
How to implement the view layer for a custom Akeneo PIM bundle?
I'm writing a (Symfony 4) bundle for Akeneo PIM Community Edition v5.
It's supposed to retrieve product stock data from an external instance (via REST API) and to display this data in the products ...
0
votes
0
answers
33
views
Symfony4 HttpClient acces denied when sending data to another server
I followed documentation of symfony to use httpClient to communicate between two servers but I'm facing an access denied problem:
Access Denied : {"parameter1":"test","...
0
votes
0
answers
27
views
Load balancing by nginx between 3 servers with Symfony and React and Docker programming languages
I have 3 servers with different IPs.
It has been implemented on 2 application servers using Symfony and React based on Docker.
I want to install nginx on the last server and do load balancing between ...
0
votes
0
answers
26
views
How to add another column in counting the value using createQueryBuilder?
This code works properly when I query the details of the user in counting the devices connecting to each user.
$em = $this->getEntityManager();
$query = 'SELECT u.id, u.email, COALESCE(c, 0) ...
0
votes
0
answers
65
views
Symfony 3 -> 4 service is private
I am currently updating an old application from Symfony 3.4. I get the following deprecation:
User Deprecated: The "security.encoder_factory" service is private, getting it from the ...
1
vote
0
answers
30
views
Prefix routes with dynamic locale depending on user preferences - symfony 4
I’m trying to make the base locale change depending on the user preferences. I know I can change the prefix rules in the config, but I don't know how to them make dynamic.
app:
resource: "../...
0
votes
1
answer
627
views
Shopware 6 Plugin: How to Implement Custom Fields for Customers?
I'm working on a Shopware 6 project where I need to implement custom fields for customers. The task involves creating a custom field set named "Swag Customer" with two additional fields: &...
0
votes
0
answers
153
views
API Platform serialization groups with multiple views
I'm sure I'm probably misunderstanding the documentation or the point of serialization groups. But I'd like to be able to specify that, for example, an index of reports not include the JSON data of ...