Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Browsing all 3925 articles
Browse latest View live
↧

No entity manager defined for class Doctrine\ORM\PersistentCollection

I'm using Symfony 4.1 with SonataAdminBundle 3.36.I get this error when I set ModelType::class on ManyToMany relation field call tags:No entity manager defined for class...

View Article


Image may be NSFW.
Clik here to view.

Uncaught PHP Exception...

I just started following a symfony 4 tutorialI set up the whole project with composer and got the index file showing up in browser http://127.0.0.1:8000/I'm stuck on the very first...

View Article


Symfony 4 - route : "The requested URL was not found on this server"

this is my first post so i'll try to be understandable.I am starting with symfony, and there is a problem i can't resolve alone.This is my controller, and I am working with WAMP.When my Url is...

View Article

Image may be NSFW.
Clik here to view.

Symfony - Sylius : Symfony VarDumper server no output inside console

ContextI'm trying to use the Symfony VarDumper server to debug controller calls from an external API.I'm a using Sylius 1.11 : the Symfony VarDumper is already as a core dependencies of the framework.I...

View Article

Symfony Messenger (Messages Queue), how to get queue status?

I am approaching Symfony 4.4 Message Queue with the Doctrine Transport.How can I get an overall view of the queue status?I noticed that Doctrine stores the queue in the table messenger_messages,...

View Article


Cannot autowire service: Argument references class but no such service exists

I'm upgrading a project from Symfony 3 to Symfony 4 (https://github.com/symfony/symfony/blob/master/UPGRADE-4.0.md) and I have many repository/services like this:namespace App\Entity;use...

View Article

Translation of flash messages with parameters in Symfony 4

I have a problem with flash messages in Symfony 4 and translation.Translation of simple flash messages is working fine:$this->addFlash('success', 'flashmessage.project_deleted');But now I want to...

View Article

How to pass data into CollectionType form and get it there?

How can I get in correct way data which send into a collection?Important:If I delete from the Create Form class this line:'data'=> array_values($builder->getData()->cpus), //TODO: shit code...

View Article


Symfony 4 - How to run Doctrine migrations before test?

I know that there are a lot of similar questions (Codeception & Symfony - run Doctrine migrations before tests) but do I really need to run migrations in tests like exec(...) or there is a better...

View Article


Symfony: Streamed response of external command to the browser to display real...

I'm generating a large PDF with 2000 pages in symfony (4.2) framework. What I'm doing is just save the HTML content to the .HTML file by getting content from the twig.Then I'm using the headless chrome...

View Article

Expired JWT Token when trying to authenticate?

I am using JWT for the first time, I am finding a hard time to understand the way it works fully, every time I find a solution to simethong, an other thing pops out.I was trying to authenticate before...

View Article

Symfony 4 "Connection refused" while trying to connect to docker mysql container

My question is how to configure connection to mysql container.Here is my docker-compose.ymlversion: '3'services:php: build: ./php-fpm volumes: - ./iym:/var/www/iym -...

View Article

Unable to use StreamedResponse In Symfony 4 to display a text line by line as...

I'm trying to display to a user a text line by line. The text is retrieved from a Python rest endpoint in a streaming response. I tried it out with cUrl, it works just fine.I'm trying to call this...

View Article


Symony 4 command: log in production

I have a Symfony command which is executed under a cron entry and I need some log in production environment.As I read here in production, for console commands, verbosity level is related to log level...

View Article

Symfony Make Entity issue

Class name of the entity to create or update (e.g. DeliciousPuppy):testcreated: src/Entity/Test.phpcreated: src/Repository/TestRepository.phpEntity generated! Now let's add some fields!You can always...

View Article


Access denied when creating database with doctrine, Symfony 4

I created a new Symfony 4 project and want to create a new database. I'm following this tutorial but can't get it to work. When runningphp bin/console doctrine:database:createI always get the same...

View Article

Symfony randomly no response fom server

i have a strange problem with a Sonata/Symfony project. Randomly the site is not available. It seems that there is a process blocking all other requests from any other user / client. The webserver /...

View Article


Symfony form programatically submited doesn't update data

I created a from, and it seems its correct but the data is no t update wen is submitted$form = $this->createForm($formType, $questionnaire)........//$questionnaire data is an array with the form...

View Article

How to minify with TerserPlugin and webpack-encore

With this webpack.config.js that use webpack-encore, and minify with terser, I can compile successfully, but absolutely nothing is minified at all. Comments, and full variable names, are still...

View Article

How to configure optional authentication to an endpoint in Symfony 4.4?

I would like to configure an optional oauth2 authentication to an endpoint.The behavior I want is this:If the request is authenticated, i.e., the user is logged in, I can get the user UUID from the...

View Article
Browsing all 3925 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>