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

Image may be NSFW.
Clik here to view.

How can I remove the headers that are exported along with data from the CSV...

I am working on CSV Export. This file is to be uploaded in ftp server. This is the code I am using to export. It is exporting but along with data it is exporting the header as well. I have added image...

View Article


Doctrine Add column onSchemaCreateTable Event

I have some ManyToMany table relations.I want to add a new column "created_at" automatically.Following Symfony and Doctrine Documentation, i tired this :app/config/services_dev.yaml[...]...

View Article


PHP server exited signal: killed

4.8The server was running perfectly before i initialized my logging protocol.Sorry for sending so much information below, just want to make sure yall understand the context.I get this log after i send...

View Article

Symfony 4 : PDO drive not found [duplicate]

i'm trying to start a new project in Symfony 4.4 but i'm having a big issue that restrain me from creating a database :https://gyazo.com/325bda80a5de37551bbf10db71266b6fI'm using WampServer with PHP...

View Article

Image may be NSFW.
Clik here to view.

CORS errors depending on location on symfony 4/ NextJs app

This API built with Symfony API-Platform is throwing a strange CORS error ( aren't they all? :)).The front-end is a Nextjs app that I have currently at Heroku at...

View Article


Mixing positional and keyed arguments in service definition, using YAML

When configuring a service using XML, we can do the following:<service id="foobar" class="App\Foobar" public="false" abstract="true"><argument type="service" id="doctrine"...

View Article

How to set Enviorment Variables for Symfony 4 with PHP and XAMPP in Windows

I am working on a Symfony 4.4 project.I need to run scripts on my local enviorment.The CLI to run phpunit is APP_ENV=test phpdbg -d memory_limit=-1 -qrr vendor/phpunit/phpunit/phpunit...

View Article

How to map form data in Symfony to an object only when form is valid?

Imagine example form in Symfony:public function buildForm(FormBuilderInterface $builder){ $builder ->add('email', EmailType::class, ['constraints' => new NotBlank(), new IsUnique(), ], ])...

View Article


Symfony Mailer configure sendmail parameters

we are using symfony/mailer in our project and i was wondering how i can configure the sendmail command with custom paramters. i found alot of content referencing to swiftmailer but we do not use that...

View Article


Symfony Messenger consume low priority messages after all high messages

is there any way to stop consumers from eating low priority messages until all high priority messages are consumed?I am thinking of checking the queue state in low priority message handler, but this...

View Article

How to Test a Form with Multiple Submit

I have a form with 2 submit// src/Form/FooType.php$builder ->add('mainsubmit', SubmitType::class, []) ->add('extrasubmit', SubmitType::class, [])In my controller, I do some different treatment...

View Article

How to setup _locale parameter in symfony 4.4 so that example.com/locale...

I'm having an issue with a symfony 4.4 website and the _locale parameter.Let's suppose the website url is example.comThere's a prefix to every controller to set the _locale parameters, the default...

View Article

Image may be NSFW.
Clik here to view.

Symfony form, EntytyType/ChoiceType from 2 different entities

I need to create a dropdown in a Symfony form that contains entities from 2 different tables, for example:Where EntityA and EntityB are two different classes and MySQL tables, with a different...

View Article


Break $content into array when conditions are met

I have an array with Category names $categories_array.I have a $content variable containing a big string (product description)My intention is to explode $content into an array ($content_array).That is...

View Article

i need convert SQL query to Doctrine Query Builder

I have a relation ManyToMany and the tables in my databases are :article : (id,titre,description,category,createAt)article_groupe_auteur: (article_id,groupe_auteur_id)groupe_auteur :...

View Article


symfony raw sql from table based on 2 server

I have 2 database server so I defined my doctrine in following way:doctrine:dbal:default_connection: defaultconnections:default:# configure these for your database serverdriver:...

View Article

Sprintf error while making multiple ORM in symfony

I am trying to implement multiple database in my symfony project. In my doctrine.yaml file I have following setup:orm: auto_generate_proxy_classes: %kernel.debug% default_entity_manager: default...

View Article


Api platform persisting by id from relation

I am new with API platform.I defined entity with @ManyToOne relation where I want to assign user id while creating a new post.I called it creator field. When I put an ID which is one of existing ids in...

View Article

VirtualBox 6.0.8, Vagrant 2.2.4 Hangs on SSH auth method: private key

I am new to Vagrant. I am trying to get a suitable developement envirement in order to create a symfony project but for some reason, I can't seem to get this working. What ever machine i build i always...

View Article

return json from streamed response symfony

I have a streamed response function in my controller as below/** * @Route("/manage/testajax", name="app_testajax") */public function testAjax(Request $request) : Response{ if...

View Article
Browsing all 3918 articles
Browse latest View live


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