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

Integrity constraint violation in my api platform relation

Symfony : 4.4API PLATFORM : 2.5 I have to entities : Client & Location : a client have many locations, a location is related to one clientClient Entity: /** *...

View Article


billingaddress in Shopware Subscriber after registration

good morning,i try to read the customer billing adress in Shopware 6 Subscriber since many hours.In controllers i can use:$SalesChannelContext->getCustomer()->getActiveBillingAddress() but...

View Article


I am trying to generate a documentation of my source code with PHPDocumentor

Hello I am trying to generate a documentation of my source code in symfony.I want to use php documentor.The documentation does not recommend composer, I don't understand the method with the file .phar...

View Article

Error after deleting an Entity and the corresponding Repository

I need help with a litle problem. I deleted an Entity and a Reposetry class in a Symfony project. When i run the php bin\console make:migration command then i get this error Message:In BaseNode.php...

View Article

Not getting the auth errors of authenticationUtils in symfony

I have an issue with the Authentication Errors when login in my app in Symfony 4.I can perfectly login with all users, but when I try to fail the login on purpose I don't get any error message neither...

View Article


Embedding a collection of forms. Empty results

I'm following the question and answer here:One form with all row of one entityMy files are:PermissionCollectionType:class PermissionsCollectionType extends AbstractType{ public function...

View Article

Api Platform 2.5: execute collectionOperations only when the current entity...

I started using API Platform after having a good documentation and watching a professionnel tutoriel, and now I encountered a problem.I have two entities User & Role, the Role is nested in User.I...

View Article

SELECT DISTINCT in Symfony 4

I'm trying to do that query :SELECT DISTINCT p.reference, p.name, p.range_id FROM reference as r INNER JOIN product as p WHERE p.reference = r.name;which will return a single reference name of a...

View Article


Too few arguments to function Sonata\Form\Type\BasePickerType::__construct()

I'm using Sonata for Admin and I have an error with all my Pickers. In the vendor directory, CRUDController, which is in Sonata-project/admin-bundle calls: $form =...

View Article


Extra unmapped field in Collection Type is not retrieved

I have the following structure :An entity "Module"An entity "Parameter"A module could have many parameters.My test module have a collection of 3 parameters.Each parameter haven't got the same...

View Article

EasyAdmin 3 : Nested forms

I'm trying to embed forms into forms. In my case : I want to embed Period and Price form into Offer form into Poi form. The architecture :Poi formOffer formPrice formPeriod formRelations:Poi entity has...

View Article

Correctly show mapping association using inheritance

Im working with entities inheritances using doctrine Class Table Inheritance.I have a base entity BaseEntity.Then I have FirstEntity and SecondEntity that extends the BaseEntity.In other hands, I have...

View Article

How to Update one row data in existing excel sheet and dynamically update...

I have one predefined Excel sheet with formulas and data.When I submit form I want to update one row data in that excel sheet and automatically update it's depending rows and columns values. I don't...

View Article


Image may be NSFW.
Clik here to view.

How to override Sylius variation form options in product show?

I have a Sylius installation where I added a configurable product with multiple variation.In shop product page, how to make the choice of product option appear as a radio button instead of a...

View Article

Image may be NSFW.
Clik here to view.

Symfony 4 is painfully slow in DEV

I try to run a simple Symfony 4 project on a docker container. I have tested regular PHP scripts, and they work very well. But, with Symfony project, the execution gets ridiculously slow. For example,...

View Article


Can't load the Admin. page of api-platform with MySQL configuration

I have mounted from the scratch the api-platform example for symfony4 from here:https://github.com/api-platform/api-platform/releasesI have it running on postgresql and switched in symfony...

View Article

How do I switch between different databases using an application Symfony 4...

I am structuring a Symfony 4 application which is also using API Platform. The problem is that we have a demand that a User will have to connect to its own database. So each time it logs in to a...

View Article


Image may be NSFW.
Clik here to view.

How to get original array of files send from form-data calling via AJAX?

I am using Symfony 4, I've created a front page that allows the user to add multiple people before submitting.Users can click (+) button to add one person.On these forms, I have some fields to upload...

View Article

How to access unmapped data in embedded forms?

I've embedded a collection of forms like here: Embedding a collection of forms. Empty resultsIn my controller, I would like to access (get and set) unmapped fields, like view, new, edit, delete.How do...

View Article

Image may be NSFW.
Clik here to view.

composer install composer/package-versions-deprecated : Could not resolve...

I am trying to deploy a symfony4 app in cloudfoundry. I got an error with "composer/package-versions-deprecated":Auto deploy(with gitlab-ci): I get this error below:The same Error with cli local...

View Article
Browsing all 3928 articles
Browse latest View live


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