Nos articles taggués « doctrine »
Comment migrer du type array vers JSON avec Doctrine
Doctrine a déprécié les types array et object en version 3. Il est temps de migrer vers un type plus interopérable, et moins sensibles au refactoring ! Vous l’aurez compris, il faut maintenant utiliser du JSON.…
par Grégoire Pineau
PHP Object Lazy-Loading is More Than What You Think
We recently attended a talk about lazy-loading by Nicolas Grekas and it inspired me this blogpost! We can find lazy-loading in all modern PHP applications, in ORMs, for example. But is there more usage of lazy-loading?…
par Baptiste Leduc
A new way to squash your Doctrine migrations
As time flies, Doctrine migrations stacks. After many years of working on a project, you’ll have a high number of migrations. Even if it’s not a big issue, It takes a lot of space in your code sources, and it can…
par Grégoire Pineau
We are open-sourcing our QOTD application
At JoliCode, we like to share our knowledge and our tools. We also like to have fun. That’s why we created a QOTD application for our Slack workspace. We are happy to announce that we are open sourcing it so you…
par Grégoire Pineau
Retour d’expérience : quand Doctrine Collections rencontre de grandes cardinalités
Dans le cadre d’un gros projet, sur lequel nous intervenons en support, une réécriture du mécanisme des codes promo a été mise en ligne. Nous sommes souvent assez sereins sur le déploiement de nouveau code, car…
par Bastien Jaillot
How to Fix Memory Leak in Doctrine Migrations
I had to write a Doctrine migration to fix some bad data. Unfortunately there was so much data (~600K records) that the migration leaked. The memory consumption reaches about 12Gb! That’s not really acceptable!…
par Grégoire Pineau
Do not drop your database content when adding Translatable to an existing project
I’ve been introducing content translation to a Symfony application initially built in a single language. As the project grew, the client wants to be able to translate the content in multiple languages so we added…
par Damien Alexandre
Améliorer la DX de vos Fixtures PHP
Les fixtures sont utilisées pour charger des données définies par les développeurs dans une base de données. Elles sont très utiles en environnement de développement car elles permettent d’avoir une application…
par Grégoire Pineau
Battle log: a deep dive in Symfony stack in search of optimizations 2/n
This article is the second in a series that explains what we learned and how we discovered new performance improvements. It’s focused on the dev environment. The first article guides us through multiple new optimizations…
par Bastien Jaillot
Battle log: a deep dive in Symfony stack in search of optimizations 1/n
My team and I are working on a big project that is becoming bigger and bigger. Split in micro services, each end-user call generates an increasing number of HTTP API calls. Performance was becoming a problem and…
par Bastien Jaillot
Dites-nous tout !
Un de nos articles vous a aidé dans votre travail et vous voulez nous remercier ? Vous avez trouvé une typo ou une erreur ? N’hésitez pas à nous le faire savoir en nous envoyant un message