Skip to content

Tag: symfony

Check JWT (Firebase) Token with Symfony 5.3

I’m working on an API, and I had implemented a JWT to make it stateless. I created an AuthController, which returns a JWT when login information is correct. Here you can see the return code that generates the token: This is the result when I run the authenticate method, un the URL localhost:8000/authent…

Symfony Cron library failed on Doctrine DBAL error

I am using this cron library within my Symfony project. It was working today and after recreating everything from the start (docker, database, vendor folder) and running it again, it crashes. As it says in documentation I was able to make specific commands and they are persisted in the database. However when …

How to get form data with session in Symfony Form

I’ve been looking for a solution for hours. I’am working with Symfony 3.2. I’am using Symfony Forms in order to display a data-table (with different filter chosen in the form) with Ajax => No submit button. I can access to different result of data-table to view more information. What i wa…

Symfony 5 using the validation to validate a new entity

I’m using Symfony 5.3.7, and using the @Assert annotations, attempting to validate a new user upon registering. Trying to understand the docs however not getting anywhere. Ideally I’d like to be able to understand how to validate an entity using these annotations. I’ve tried using a separate…

Symfony 3.4 – cannot load field value

I’m using Symfony 3.4.47 w/ MySQL 8 and getting a field value wasn’t a big thing until today. I’ve created a migration file to add a new field to an existing entity: And I’ve added the field ‘cliente_apelido’, getter and setter to the ‘Plano.php’ model: It turns…