Advent 2023 blogging day 10: in which I detail my preferred database abstraction layer, Doctrine DBAL, rant about its documentation, provide some tips and tricks, and detail how much I actually love using it.
The #NHS is slipping ever further into deficit... the #Treasury has required 'efficiency gains' in return for more cash this winter, there is a new #Coronavirus variant gaining ground (and causing a growth in hospitalisations).... and still, the #Tories won't make a serious attempt to resolve the #doctors' strike... the wreckers are having one more go before the #election.
#NHScrisis is not an accident, its smiling be-suited engineers sit in Downing St.
To be sure, is it not their job, at present, to 'cock it all up' such that the next government has as hard as possible a job to 'fix' it within their time window?
I ask in earnest; a pal suggested it to me as a working theory, and I found it hard to disagree with.
My own feeling leans toward both parties wanting rid of the #NHS (in it's current form), but accepting that to declare such would be #political suicide. As a public we so often clamour for the notion of telling truth to power, and are perhaps blind to the possibility that we are the power who don't like hearing the truth.
I'm a student of neither economics nor politics, so I'd be curious if you had any thoughts.
Wow you really have to be careful with #Doctrine and keep an eye on the queries that are happening. The right use of eager loading and being cautious of queries inside of loops is very important.
Also got in-line Form editing working and love it.
One gotcha is that the Form is automatically turned into a FormView when passed to the response. My array of forms had to be manually converted with createView().
At SymfonyCon, after my DDD talk I talked to someone who asked about how to work with domain entities vs Doctrine entities. Let's give it some explanation.
Interesting web comic about nuclear technology and regulation. Especially in the context of current events (AFIK only 3 countries that have had nuclear weapons and ICBMs have ever disarmed... One of them is now being invaded).
The #Doctrine website was updated to use the latest PHP version for its build.
It just needed some PHP 8 incompatibility fixes, updated dependencies, updating 2 of those dependencies to make them compatible with the latest PHP version, fixing BC from some major dependency updates and adapting workflows. Just a chain reaction of work.
It might have some issues after so many changes were done, but they'll be fixed too.
Thanks to kochen and jankal on GitHub (don’t think either are here in the Fediverse), there’s a new version of ramsey/uuid-doctrine (v2.1.0), with support for doctrine/dbal v4 and binary types in PostgreSQL. 🎉🎊🥳
It's interesting how overly polite #AI generated PR content is by default. At least during my reviews of #Doctrine PRs I rarely read something like: "Of course, I will gladly explain this in more detail and hope to make my point more clear". People are more like saying "Sure", "Okay" or just explain it. And in rare cases: "I don't get paid for this. Take it or leave it". 😅 #opensource
SymfonyCon follow-up: Doctrine entities vs Domain entities (skoop.dev)
At SymfonyCon, after my DDD talk I talked to someone who asked about how to work with domain entities vs Doctrine entities. Let's give it some explanation.
Database referential integrity with Doctrine (dev.to)
Here could be extensive AI-generated introduction about Database referential integrity, but not...
Doctrine's HIDDEN gem (symfonycasts.com)
Using Doctrine's HIDDEN doesn't come up often but it is a great tool to have when you need it!
Removing orphaned Parents with Doctrine (dev.to)
Previously, we considered a common real-life case where, to maintain referential integrity, we might...