Questions tagged [symfony-4.2]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.2 was released in November 2018.

Symfony is a PHP web framework first released in July 2011 and was created by SensioLabs. Symfony 4.2 was released in November 2018.

Bug fixes

  • bug #29343 [Form] Handle all case variants of "nan" when parsing a number (@mwhudson, @xabbuh)
  • bug #29373 [Routing] fix trailing slash redirection (@nicolas-grekas)
  • bug #29355 [PropertyAccess] calculate cache keys for property setters depending on the value (@xabbuh)
  • bug #29369 [DI] fix combinatorial explosion when analyzing the service graph (@nicolas-grekas)
  • bug #29349 [Debug] workaround opcache bug mutating "$this" !?! (@nicolas-grekas)
  • bug #29344 Fixes sprintf(): Too few arguments in Translator (@stephanedelprat)
  • bug #29318 [Console] Move back root exception to stack trace in verbose mode (@chalasr)

Documentation / Resources

  • Overview: Documentation for current version.
  • Flex: New way to manage Symfony apps.
  • Best Practices: Best practices for developing web apps, esp. the ones using the full-stack Symfony framework.
  • Symfony Recipes Server: Includes official and community recipes.
96 questions
0
votes
2 answers

How to send mails using gmail in symfony 4?

I am using symfony 4.2, In .env file: MAILER_URL=gmail://saurabhofficial:qwerty@localhost?encryption=tls&auth_mode=oauth swiftmailer.yaml swiftmailer: url: '%env(MAILER_URL)%' spool: { type: 'memory' } Service: namespace…
Saurabh
  • 432
  • 1
  • 10
  • 23
0
votes
0 answers

Annotation is not working for Symfony 4.2 project

I just started to learn symfony 4.2 and following symfony official documentation site. My Controller looks like
user10493532
0
votes
0 answers

Symfony/FOSUserBundle: Load an existing User from database in Fixtures

My problem comes from the fact that i have a relation in my entities that depends on each other. My entity Link has a relation with an entity User. When I try to load the User using UserManagerInterface it returns NULL. Here is My AppFixtures…
Salim Ben Aissa
  • 435
  • 1
  • 6
  • 21
0
votes
1 answer

why symfony4 swiftmailer with gmail doesn't work?

I don't understand why swiftmailer doesn't work with gmail? I get this exception: ERROR [app] Exception occurred while flushing email queue: Connection could not be established with host smtp.gmail.com [ #0] Here is MAILER_URL in .env…
Moh
  • 39
  • 1
  • 11
0
votes
1 answer

Persist an entity in a ManyToOne relationship without creating a new linked entity

I have a concern with the persistence of my entities for a ManyToOne Unidirectionnal relationship. In fact I have an entity Order linked to a ticket entity, in the order form I have a choices to select the ticket. This is foreign key in Command…
Aguina
  • 1
  • 1
0
votes
3 answers

How to call safely a delete action in a Controller?

I created a blog with a comment system, and I would like the author or administrator to delete his comment. So I searched the internet, but I found only posts in reference to Symfony 2/3 and I had a hard time understanding. So I created my own…
user11084147
0
votes
1 answer

Symfony 4 - Easyadmin and full package CKEditor

I'm trying to install the full package from CDEditor 4 to use it with easyadmin, but even if I manually install CKEditor, I keep the basic package on easyadmin. Actual CKeditor interface In my fos_ckeditor, I just have: fos_ck_editor: base_path:…
user11084147
0
votes
4 answers

Access Doctrine within a custom service in Symfony4

Aware that there is a lot of information around the net regarding this, I am still having a lot of trouble getting this to work. I have created a custom service:
Jordan S
  • 31
  • 8
0
votes
1 answer

Symfony 4 & Sonata Admin 3 Warning: spl_object_hash() expects parameter 1 to be object, string given

I am using Symfony 4 & Sonata Admin 3 and trying to build the Admin for the my Booking Entity. Booking has a One To Many relationship with Passenger. The Booking form displays as expected but when submitted the following message is…
0
votes
1 answer

Symfony 4 - Is my user's profil system secure?

Bonjour, I'm starting with Symfony, and I'm trying to get users to see the profile of other users. My profile template is the same for everyone, the display of information is based on the user name passed in parameters of the URL. I simply compare…
user11084147
0
votes
1 answer

symfony/skeleton logged in User persisted in session, but not available in getUser()

I've set up a simple symfony/skeleton application that contains user entity and authentication. When after successful authentication I call a route that contains the following code: public function index(Security $security) { $username =…
BenjaminH
  • 324
  • 3
  • 13
0
votes
1 answer

Defining default @GeneratedValue Strategy for Symfony MakerBundle

When using the MakerBundle in Symfony (4) to create new entity (make:entity EntityName), an id is generated by default with annotation (if annotations enabled) @GeneratedValue. @GeneratedValue means @GeneratedValue(strategy="AUTO"). According to the…
robinvrd
  • 1,760
  • 12
  • 28
-1
votes
1 answer

How to combine firstName and lastName, then show it with Full name column in Sonata admin

I'm trying to show Full name column with firstName and lastName from entity. How can I do? Here is my Entity and Admin.php: class test{ private firstName; //another properties private lastName; } Admin protected function…
Ben
  • 75
  • 1
  • 14
-1
votes
1 answer

Symfony. How to build the form?

How to implement the form, that accepts the following JSON-Object? I have defined no models, because I don't need them. The data are sent { "type_of_error": "logic error", "severity": "normal", "what_did_you_do": "something", …
olek07
  • 513
  • 2
  • 7
  • 21
-1
votes
1 answer

Symfony 4 doctrine creating issue

I'm using ubuntu 16.04 and when trying to create schema (bin/console doctrine:schema:create) get a lot of errors
Ovruchsky
  • 105
  • 1
  • 1
  • 6