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

Symfony 4 - EasyAdmin Bundle - default form value

Hello everyone !I'm using easyadmin for a project and i'm a bit confuse. I have a User entity with roles "ROLE_CUSTOMER" and "ROLE_REPAIRMAN". I can display and add users depend on their roles...

View Article


How do I suppress the warning "unable to find the application log" after...

With Symfony 4.3 and Symfony CLI v4.7.1, when I run:symfony serve I see the following warning in the output:WARNING unable to find the application logHow do I solve the issue that raises this warning?...

View Article


Can't Logout user in Symfony4

I'm updating a project built with Symfony2.7 to Symfony4, everything is working fine and have good compatibility, but one thing that should be fine, a built-in resource, the security layer, doesn't...

View Article

Cannot logout with Symfony 4

I cannot logout a user.I ported custom user management logic over to a Symfony 4 project. It uses recipes for security and guard.Here is the logout config in my main firewall: logout: path: /logout...

View Article

Symfony 4 - How to display data and form in the same page?

I want to display the form and the data which is from BIN database file. I want to let the user enter the IP address, so they will get the information. However, it only shows the form, can't show the...

View Article


Symfony 4 : get the error message from count constraint applied on collection...

I am using a collection type of symfony 4, and i wish to apply a count constraint to this collection. I have followed this tutorial : https://symfony.com/doc/current/form/form_collections.htmlMy idea...

View Article

Correct way to denormalize an object (Doctrine Entity) with relations

I need to denormalize an object (Doctrine Entity) from an array (it comes from POST JSON and decoded into an associated PHP array). The main goal is to save the object and all its relations (which have...

View Article

Symfony 4 change default form name

I create 2 forms not linked to any entity in the same controller. Each form have it owns submitted button. I never goes to the submitted function of the second form. I think it is because the 2 forms...

View Article


Symfony join with first match dql

i'm working with Symfony framework (2) that I have two tables in my database First Table : Caisseid 1 2 3Second Table: Caisse_Zonecaisse_id 1 1 2 3 4I want to join the two table but i need to join only...

View Article


Symfony 4 - .env Variables Not Available

I'm running in to a brick wall here. Everything so far with Symfony 4 has been sunshine and daisies but now I can't seem to add any environment variables to my project.In my project root there is the...

View Article

Can Symfony 4 be configured to ignore code installed in subdirectories?

I'm currently converting an old website to use Symfony 4 and the site uses the LiveZilla live chat app.LiveZilla lives in a subfolder of the site, and is accessed directly using URLs under...

View Article

My profiler isn't showing up in symfony 4.3.1

In my .env file, I have specified my app environment to be dev and debug to be true like so:APP_ENV=dev APP_DEBUG=true In my config/packages/dev/web_profiler.yaml file I have the...

View Article

Interface Matcher\RequestMatcherInterface' not found

I am trying to deploy my Symfony app to Webhosting and getting this error Fatal error: Interface 'Symfony\Component\Routing\Matcher\RequestMatcherInterface' not found in...

View Article


Custom UserChecker in HWIOauthBundle

I have a problem with FOSUserBundle and HWIOauthBundle. I use custom UserChecker to check whether user is banned (custom table in database as I need a ban history). When I use Facebook to log-in my...

View Article

Dependency Injections seems to create new doctrine instance, which causes an...

I've got two services, those get Doctrine injected via the constructor. When loading an entity in an EventListener and giving it ot service the entity is detached.When im providing the...

View Article


Image may be NSFW.
Clik here to view.

Problem redirect after login when using FOSUser Symfony4

http://blog.test/register and http://blog.test/login works well, so when I access from http://blog.test/admin I am redirected to http://blog.test/login and and when I log in i have this error : Access...

View Article

Command in third-party (vendor) Symfony Bundle is not detected. What is wrong?

as instructed in https://github.com/glennthehuman/encryption-bundle/blob/master/Resources/doc/index.mdI executed: php bin/console jagilpe:encryption:user:generate_keys But I got: There are no commands...

View Article


Trying to deploy our S4 program, we have a fatal error with debug

We wrote an application with SF4. It works fine, even on the remote site, in dev mode.So we try to get prod mode. In .env, we pass the APP_ENV variable to prod, an we have the message : Fatal error:...

View Article

Many to many suppliers/articles

I develop under symfony 4 and I block on a relationship ManyToMany, I wish I could have a reference for each articles knowing that one all suppliers can have the same article in common but with a...

View Article

Symfony + Forms, by_reference = true and allow_add in CollectionType fields

I'm relatively new to Symfony, so I might grossly misunderstand something. I'm confused about when I'd want to set by_reference = true on a CollectionType form field with allow_add = true.For context:...

View Article
Browsing all 3925 articles
Browse latest View live


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