Sonata Seo Bundle in Symfony 4
I've installed Sonata Seo Bundle in a Symfony 4 project and I have followed the steps from https://sonata-project.org/bundles/seo/2-x/doc/reference/usage.html. But when I launch the application I take...
View ArticleSymfony 4.1.4 - Validation annotation NotBlank is not working when edit...
I'm using symfony 4.1.4, I have a wondrous problem, the annotation validation Length is working but NotBlank doesn't work when edit object data but it works when adding new object/** *...
View ArticleLogging user out on all devices (Symfony + PdoSessionHandler)
I would like to execute a query to get all the user sessions and remove them to log certain user out from all their devices on a button click.I am using PdoSessionHandler to store user sessions in a...
View ArticleWebpack FOSJsRoutingBundle integration with Symfony Flex and Angular
I cannot get FOSJsRoutingBundle to work with Symfony Flex, Webpack and AngularJS.I've been using this bundle in Symfony 3 with AngularJS for a long time and there's never been an issue but with the...
View ArticleSymfony4: Expected argument of type "Categorie", "instance of...
I am having an issue with the EntityType class in Symfony 4 where I cannot find a way to make the form row return a string instead of an entity (Categorie). This is what I basically have as part of the...
View ArticleSymfony 4 doctrine - create entity and controller for new database table
I am very new to Symfony and Doctrine.I needed to add a new table to the existing database and i would like to create the entity and controller for this new table.Is there a command to do this for just...
View ArticleHow 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 ArticleUncaught PHP Exception LogicException: "Unable to add global "ea" as the...
In browser, easyadmin is working fine. But when I run test case which asserts redirection logic to EasyAdmin's dashboard controller after login, it failed with the following error:Uncaught PHP...
View ArticleCheck if entity property exists
I have an URL like example.org/overview/<column>/<value> (example: example.org/overview/color/red) which will cause a search in a column "color" for the value "red". This is the...
View ArticleDrupal feeds module
I have a Drupal custom module that import products from an API. I am using drupal content type to add products to site. Due to dependency reason we have to use a feeds module to store api response in...
View ArticleMJML to HTML slow
I'm having a little problem converting MJML to HTML in Symfony 4.More in detail, when I want to send mail on redis it takes a long time, 2 mails per second for 1500 users.Do you have any solutions for...
View ArticleParse error: syntax error, unexpected '|', expecting variable (T_VARIABLE)...
I have some syntax errors from symfony vendor when i'm trying to composer install my project.Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE)...
View ArticleValidation password confirmation in Symfony
I have a problem when I try to create a validation of my registration form, I get an errorInvalid property path "passwordConfirmation" provided to "Symfony\Component\Validator\Constraints\EqualTo"...
View ArticleKnpPaginator not works on joined tables
I'm trying to get two tables joined and get a sorted result set from KnpPaginator. Here is my code.View<table class="table table-bordered"><tr><th>{{...
View ArticleHow to store an array to the cache in Symfony?
I have an array to display from database and after many business implementations which is taking time of 1~2 minute to get me final output. So this process is annoying me while testing with UI. So I...
View ArticleSending email using office365 server with swiftmailer in symfony
I'm trying to send an confirmation email after registration using swiftmailer and office365 server in symfony. I've tried every combination of host,port and encryption type I've come across.Currently...
View ArticleHow to convert json Request to an array in symfony?
I am trying to convert the JSON Request $request to an array. I have output something like this:^ Symfony\Component\HttpFoundation\Request {#45+attributes: Symfony\Component\HttpFoundation\ParameterBag...
View ArticleVisual Studio Code PHP Intelephense gets errors which aren't
I'm working on a Symfony 4 project using Visual Studio Code with Intelephense.Intelephense gets errors which aren't. There are some examples:Undefined method 'uasort'.This error corresponding to this...
View ArticleHow to compress a HTML form image, replace it and send it through the same...
I have a form with input images and I would like to rotate and reduce them before submiting the form. At this point I know how to rotate and reduce them, but I can not manage to inject them in the form...
View ArticleSymfony service decoration, what does it actually mean?
I am new to Symfony. I read about service decoration but I don't still understand it. What does it actually mean to decorate a service in Symfony?
View Article