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

Symfony 4 + Sonata Admin - No metadata found for property in inherited property

I've got an error for some time now when I try to add filters to an Admin. There are two entities: Client and Order.In the OrderAdmin file, the following filters work:$datagridMapper ->add('id')...

View Article


Symfony 4: Command-Syntax to call Process Component

I have created a symfony command that can be executed successful from the shell using the following syntax: php bin/console app:create-pdf 1 www.google.comthis command works! (the last two parameters...

View Article


LDAP role in Symfony 4

I'm using the ldap component on my project in Symfony 4. It works great, authenticates successfully but the only role that I can set on users is the default_role provided in the option of the ldap...

View Article

dunglas mercure server / javascript EventSource withCredentials : no headers...

Making a mercure /hub dispaching Updates with symfony 4.4 works fine until I dont try using credentials with mercureAuthorization cookie. As soon as I add {withCredentials: true} in EventSource,...

View Article

Symfony4 : The annotation does not exist, or could not be auto-loaded...

When I try to drop database schema by:$ vendor/bin/doctrine orm:schema-tool:drop --force I keep getting this error:In AnnotationException.php line 54: [Semantical Error] The annotation...

View Article


How to create and persist a new entity instance inside an entity?

I would like to create a favorite list for each user I create on my website. It means that in each instantiation of the User entity I expect a FavoriteList to be created.I have an entity User and an...

View Article

Symfony4 Annotation routing does not work

I just started learning Symfony. I am following this official tutorial exactly. Routing works fine when done with config/routes.yaml but on using annotations:namespace App\Controller; use...

View Article

Symfony Vuetify Console errors

I know there have been other threads about this but not especially with Symfony. I'm trying to create a navbar component for my website but can't achieve to do it. I've done all commands given in other...

View Article


Attempted to load class "WebProfilerBundle" from namespace...

We have a Symfony 4.3 web application hosted on Heroku. This is a new setup and we never managed to have the dev mode to work correctly. There are plenty of similar issues online but none fixes the...

View Article


Symfony 4.3 Unique Entity between two Entities isn't working

I'm trying to prevent an user from having the same Magic the gathering card twice in his collection.Here's my CollectionContent entity. It contains every cards users have in their collection. It is...

View Article

Custom Console Commands in Symfony

I am trying to customize some console commands in Symfony.Specifically I want to build a make:customCrud. This console command I want to do as a modified copy of the original, make:crud, since it...

View Article

Symfony 4 - ManyToMany - FetchData (ORM Fetch or Repository Query)

I try to fetch data from a ManyToMany relations. I found a lot of videos/posts/blogs on the subject, but I can't make it work (or understand). I need help.SO ! I've "Formation" and "Module" class. Each...

View Article

How to send data in base.html.twig in symfony 4?

All files extend base.html.twig in my Symfony (v4.4) project.I would like to know, how to send data in base.html.twig, because it doesn't have a route.That would allow me to send categories (title) to...

View Article


Override the symfony 4 fosuserbundle fo security controller to implement the...

Every one. I want to override the symfony 4 fosuserbundle security controller. I am going to implement the login function with external login API(It means that When user submits login form I must check...

View Article

Symfony form builder: How to iterate/render dynamic amount of text fields in...

I added an extra checkout step to the Sylius checkout procedure and I am trying to add 1 text field per instance of an ordered item. Thus having put 3x itemA and 1x itemB in cart should spawn 4 text...

View Article


PostWrite event using services according to an event's property

I have an EventSubscriberInterface called PostCreation listening to the POST_WRITE event. The method called when the event occurs must call a service according to the "type" attribute of the object...

View Article

Choosing a PHP framework for small applications [closed]

I know this is a vague question and im not expecting a definitive answer, I just need pointing in the right direction. I am a php developer and I currently use an MVC framework I made myself, it...

View Article


Symfony 4: Use existing form type class in Sonata's configureFormFields method

I know I can pull individual form elements from the type's builder into the form mapper as described in the documentation: You can add Symfony FormBuilderInterface instances to the FormMapper. This...

View Article

In Symfony4 update function not working,after values fetch from database

I'm new to Symfony.I made a form with insert,delete,view,update. In view page i added a edit button which is used to update the values.when i submit the form after change the values in form values will...

View Article

How do I tell Symfony4 to render a custom html for an AccessDeniedException...

I am currently using Symfony4 to build out a web application to manage data validation. At the moment I am trying to build out a custom response so if a User tries to access the page without the proper...

View Article
Browsing all 3924 articles
Browse latest View live


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