How does webpack-encore works with symfony 5?

I’m getting a bit mad dealing with webpack-encore in a symfony 5 project. There is few things i just don’t understand. first of all here is my webpack.config.js : const Encore = require(‘@symfony/…

Error at login: This repository can be attached only to ORM sortable listener

I am currently verifying the operation by upgrading to Symfony 4.0. When I tried to log in by entering my ID and password, the following error message appeared. Is there anything you can think of? …

Symfony 4: ROLE_USER doesn’t inherit IS_AUTHENTICATED_FULLY and Voter throws AccessDeniedException

I’m working on a legacy project with a lot of ancient staffs. There’re huge numbers of actions which are used really rare. Half a year ago we upgraded from Symfony 2.8 to Symfony 4.4. All worked …

Cron – bad minute errors in crontab file, can’t install

So I have a cron file sms.cron that I want to execute every 15 minutes that looks like that: 15 * * * * docker-compose exec php bin/console app:send-sms I do not precise the path to the command …

How to overide the user registration on the sylius shop api plugin

I am setting up a Sylius 1.8.6 with the Shop API plugin What needs to be done is adding some fields on the user registration. I have managed to add them to the Sylius ShopUser entity by adding to the …

Findby DateTime the recent uploaded articles Symfony

Hello im triying to get on my dashboard only the most recent articles but isnt working i did this function public function PostsRecientes(){ return $this->getEntityManager() ->…

list display in choicEntity in symfony 5

I am not at all familiar with PHP, and still months with Symfony, I am developing a small project thanks to a tutorial and I have a problem that has blocked me for too long veil: I have a choiceType …

Why isn’t InteractiveLoginEvent not fired with Symfony’s 5.1 new security system?

With the new Symfony 5.1 security system, I’m not able to fire the InteractiveLoginEvent. I followed the configuration in the official documentation (here and here) and the system was working …

pass id of foreign key to the form via post

I’ve created a new field (“responsavel”) on my db for this entity (“Multa”), “responsavel” is a foreign key to another table (Usuario) and I want it to be shown on my …

Add TINYINT to Doctrine SQL types

Following Symfony doc, I tried to add TINYINT as entity column type. So far it works well, but two problem remain… Each time I want to perform a migration, Doctrine can’t reconize TINYINT for the …