483 questions
1
vote
2
answers
140
views
Typed property App\Entity\X:X must not be accessed before initialization
I'm trying to upgrade my Symfony from 5.4 to 6.4 and PHP from 7.4 to 8.4. I almost did all changes but I'm currently blocked on this exception :
Typed property App\Entity\AppRole::$uniqid must not be ...
0
votes
1
answer
52
views
translation:extract is not working in forms
Regarding this form:
<?php
// src/Form/ContacteType.php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\...
0
votes
0
answers
19
views
Custom bundle Symfony 6.2
Receiving definition has no class error when trying to work with custom bundle
I tried this command with namespace of my bundle: bin/console debug:container NotificationBundle
No services found that ...
0
votes
0
answers
126
views
Custom bundle no services found in debug:container
I need to add new features to a custom Symfony bundle that my colleague had previously developed. To work with this bundle, I installed it in the Symfony base_app via composer. There was an error ...
1
vote
1
answer
169
views
Intelephense is showing Undefined Type errors that are not true
Windows 11: 24h2
VS Code: 1.102.1 (WSL: Ubuntu 24.04.2 LTS)
Intelephense: 1.14.4
Symfony: v6.4.23
PHP: 8.2.28
<?php
namespace App\Command;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\...
1
vote
0
answers
34
views
Symfony form $form->isValid() always returns false – Form is submitted, all fields filled
<div class="container">
<h1>Hello {{ controller_name }}! </h1>
<div class="row">
<table class="table">
<tr>
...
0
votes
0
answers
34
views
Symfony 6.4 controller receives blank response from command
I have a Symfony 6.4 controller that accepts a JSON, retrieves the values from the JSON, sets the arguments and calls a Symfony Command with these arguments. The Command executes certain API calls and ...
0
votes
0
answers
165
views
Symfony 6.4 - Authenticator does not support the request
I have a Symfony 6.4 (with Api Platform v3.4.5) project. I have a controller that accepts a JSON. The controller picks up the arguments passed via the JSON and calls a Symfony Command with these ...
0
votes
1
answer
58
views
notifier component's Texter::send() always returns NULL (no SentMessage-object response to see if the SMS has been sent)
When using Symfony's notifier component to send an SMS via a custom SMS Service, the Texter::send()-method always returns NULL, which prevents me from seeing if the message has been sent or not.
...
0
votes
2
answers
127
views
Get Symfony form data with unmapped fields
I have a Symfony form, some fields are from entity, some not (unmapped).
I need to get full form data with those unmapped fields. I know there is a way to get those one-by-one (eg $form['unmapped']) ...
0
votes
0
answers
33
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
0
answers
29
views
Filters button is disabled in EasyAdmin 4 and empty popup of filters
I use EasyAdmin 4 to manage documents in a project based on Symfony 6.4. My problem is when the main documents page is shown, filters button is disabled and when I inspect and remove disable option ...
0
votes
1
answer
21
views
Error Typed property Foo::$bar must not be accessed before initialization
I am using php8.2 in a Symfony 6.4 app. I have a DTO, which is defined as follows:
final class Store
{
public function __construct(
public readonly string $storeNumber,
public ...
0
votes
1
answer
71
views
GosWebSocketBundle upgrade to symfony 6.4 gives option already exists error
We are upgrading a symfony 5.4 project to 6.4 but we are stuck on gos-websocket.
When we are executing the command php bin/console gos:websocket:server -vvv
we are getting following error:
[Symfony\...
0
votes
0
answers
47
views
Query doesn't return records but SQL does
I have two tables:
A Packages table that stores a list of packages against an order.
A Package Status table that lists the lifecycle of a package from inception to delivery to the consignee
The idea ...