If you notice such an error, even though the relationship that Doctrine complains about hasn’t changed and you’re selecting the fresh object from the db. Don’t need to persis here as suggested as it won’t help anyways as the object (in this case a User instance) is already in the DB, so it doesn’t needContinue reading “A new entity was found through the relationship (No it wasn’t !)”
Tag Archives: symfony
Custom style for one field – turning a textarea into a rich text editor Quill with Symfony Forms and Twig
I have a form rendered with {{ form(form }} so a standard way of rendering using Form component from Symfony. Now, we want to add a Rich Text Editor (Quill in this case) and add a possibility to attach functionality to chosen textareas. The form now, renders nicely thanks to inbuilt layouts that twig alreadyContinue reading “Custom style for one field – turning a textarea into a rich text editor Quill with Symfony Forms and Twig”
Symfony bundles that allow db records version control and audit
Doctrine Audit BundleThis one is maintained and is compatible with Symfony 5https://packagist.org/packages/damienharper/doctrine-audit-bundle Demo bundle here. DataDogAuditBundlehttps://github.com/DATA-DOG/DataDogAuditBundle knplabs/doctrine-behaviors Maintained.https://github.com/KnpLabs/DoctrineBehaviors antishov/doctrine-extensions-bundle (fork of 5) Gedmo loggable (but currently no Symfony 5 support) https://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.htmlDocs and example here.
Symfony Webpack encore going from global variables to webpack js management and node packages
Going from a JS strewn over the project to a single app.js and app.css that will hold all the dependencies and webpack which is going to manage this in an efficient manner. Modules in JS – importing, exporting. Why is it a first step to managing node_module as in PHP’s composer When importing the moduleContinue reading “Symfony Webpack encore going from global variables to webpack js management and node packages”
What packages do real symfony projects use?
The composer.json comes from a codebase for https://www.librecores.org. https://github.com/librecores/librecores-web/blob/master/site/composer.json What do we have here: This seems a cool, neat bundle: https://github.com/maximilienGilet/notification-bundle for notification management Algolia Search Bundle https://github.com/algolia/search-bundle This one seems like a nice bundle that let’s you index your data, and search through it, it integrates with Doctrine ORM Compatible with Symfony 3.4, and 4.0Continue reading “What packages do real symfony projects use?”
RabbitMQ – queue empty after a restart, why even though it’s “durable”?
State before: A message in the ‘send-email-queue’ and now restarting the server and the queue is cleared. Message is gone? Why? You can see that there are two options for a message in “Delivery mode” when publishing the message from the rabbitmq panel – in a “queue” tab you will find this: This is theContinue reading “RabbitMQ – queue empty after a restart, why even though it’s “durable”?”