Symfony 4.3 validation doesn't work - not even the automatic
everyone. There is a similar question posted here, but the answer does not solve my error.I'm trying to use Symfony 4.3 automatic validation on an entity, but it just doesn't work.I've uncommented the...
View ArticleHow to have the placeholder translated in an EntityType?
I'm building a form which has an EntityType element, the problem I have is that I'm unable to have the placeholder translated.Here is my code:$builder ->add('Products', EntityType::class, [ 'mapped'...
View ArticleExtract translations from FormType in Symfony4
Is it possible to extract placeholders and titles translations from FormType class in Symfony4 using console command php bin/console translation:update --force uz ? { $builder ->add('title', null, [...
View ArticleConvert Mailbox E-mail to Case
During email synchronization emails from mailbox doesn't convert in to case (or lead). How could I run this process?I use oro crm 4 application, reconfigured mailbox according to documentation. Email...
View ArticleOmines Datatables - Depth > 2, multiple relation support with...
I tried to get this working:$table = $this->createDataTable() ->add('firstname', TextColumn::class, ['label' => 'Vorname', 'orderable'=> true, 'field' => 'personalData.firstname'])...
View ArticleHow to create a composer package for Symfony [closed]
I'm using Symfony 4 and want to create a composer package.I want to put my Symfony project files on GitHub and create a composer package from the repository.Does anyone have any advise on how to go...
View ArticleSymfony 4.3 : Dynamic form management
I'm trying to implement a dynamic form with Symfony 4.3 based on the official documentation.To simplicify, I have 3 entities: product, category and subcategory related to each other with OneToMany...
View ArticleSymfony 4 - Some difficults with Cascade={'persist','remove'}
and sorry for my English, I'm French so I use a translator. Here is a part of my model to illustrate my words:So that's the trouble. I am in my Admin Settings page. On this page I will be able to add /...
View ArticleSymfony 4 : DataFixtures directory not found
I'am using symfony 4I have created an make called Ad:entity with this commande php bin/console make:entity Ad.php <?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** *...
View ArticleSymfony 4 custom deserializer returns empty properties in entity
I have a custom Symfony 4 deserializerclass CardImageDecoder implements EncoderInterface, DecoderInterface { public function encode($data, $format, array $context = []) { if($format !== 'json') { throw...
View ArticleIs it possible to move symfony 1.x project to symfony 4.x (latest)?
I have a project which is using symfony 1.x with PHP 5.3. I want to upgrade it to the latest version of symfony which is 4.x. My first question is, is it possible ?If it is how to do that ?else do I...
View ArticleThe service "security.authentication.provider.guard.main" has a dependency on...
i have a project developed with symfony 4.3, i try to add the guard authentication service using make:auth command. i have this line error :The service "security.authentication.provider.guard.main" has...
View ArticleSymfony 4 handling null DateType form field
I have a form in Symfony 4 where I implement the DateType as a text field->add('DateOfBirth', DateType::class, array( 'required' => false, 'widget' => 'single_text', 'empty_data' = )) however...
View Articlesymfony 4 app engine deploy Attempted to load class "Kernel" from namespace...
Error below not occuring on local machine, sounds like PSR issues but PSR if correctly configured Attempted to load class "Kernel" from namespace "App". Did you forget a "use" statement for...
View ArticleUnable to run dev- server (npm)
For some reason i cant launch npm run dev-server If someone have a solution to solve this problem please, let me know.
View Articlehow to encode password with special character for swiftmailer .env
I'm using Swiftmail to send emails with gmail.I have configured the MAILER_URL in my .env. But my password has got a special character in it. I've read that you must encode your password when there is...
View ArticleHow to set default choiceType in symfony or twig
I am trying to get default radio checked with symfony or twig but i am not able to do for example i have a gender form field that contains male and female and i want to have one of them to be checked...
View ArticleRequirements could not be resolved
I am on Linux Ubuntu and I have a Symfony 4 project and I did not succeed to make that functions. After updating my OS, I have a problem. When I launch for this project: composer installI got this...
View ArticleShow form errors
I would like to show error messages in the top of my registration form. I created my registration form:<div class="example-wrapper"> <h1>Register</h1> {{ form_start(form) }} {{...
View Article@IsGranted annotation on property of subject
I have annotation (working)@IsGranted("editBlog", subject="company") but I want something like this (not working):@IsGranted("edit", subject="company.blog") "Company" and "Blog" are Doctrine Entities...
View Article