Crell, (edited ) to php
@Crell@phpc.social avatar

I'm noodling with a data storage layer library in . specific. There's 2 options:

  1. Auto-generate SQL tables/views/queries off of PHP data types (with attributes)
  2. Auto-generate PHP classes off of SQL tables/views/queries.

Which would you prefer? The goal is fully typed interaction in PHP space, but I'm not sure which side should be canonical.

Which would you rather work with, and why? Assuming a "good" DX in either case.

Answer why in replies, boost for reach, etc.

Crell,
@Crell@phpc.social avatar

For reference, is PHP-centric. /Eloquent is a bad SQL-centric implementation. (Assume a better one in this comparison.)

mwop, to php
@mwop@phpc.social avatar

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.

https://mwop.net/blog/2023-12-10-advent-dbal.html

#php #doctrine #dbal

greg0ire, to php
@greg0ire@phpc.social avatar

doctrine/orm 2.18.0 will have a flatter directory tree: https://github.com/doctrine/orm/pull/11148

fzf is going to be easier to use 🙂

anubhav, to php

Could anyone suggest an for 7.2 & MariaDB 10 (Rocky Linux 8, Apache 2.4)? So far I have only used raw SQL in PHP.

I found <https://www.doctrine-project.org/projects.html>, <https://github.com/propelorm/Propel2/releases>, & <https://github.com/bcosca/fatfree> "F3". I have zero familiarity with all of those.

I noticed that Doctrine 3 documentation mentions 7.4 & latest stable versions of PHP, ALONG WITH "7.1+" <https://www.doctrine-project.org/projects/doctrine-orm/en/3.1/tutorials/getting-started.html#guide-assumptions>. What would I be missing with PHP 7.2?

ChrisMayLA6, to coronavirus
@ChrisMayLA6@zirk.us avatar

The is slipping ever further into deficit... the has required 'efficiency gains' in return for more cash this winter, there is a new variant gaining ground (and causing a growth in hospitalisations).... and still, the won't make a serious attempt to resolve the ' strike... the wreckers are having one more go before the .

is not an accident, its smiling be-suited engineers sit in Downing St.

doboprobodyne,
@doboprobodyne@mathstodon.xyz avatar

@ChrisMayLA6
Re.: approaching ; at which the opposition party seems likely to be voted in.

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 (in it's current form), but accepting that to declare such would be 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.

phphil, to random
@phphil@phpc.social avatar

I've upgraded and now all DQL strings have this horrific background color.

Anyone know which setting to tweak? I couldn't find it yet, so I had to disable the bundled DQL plugin for now...

JaniceSelbie, to Catholic
@JaniceSelbie@mas.to avatar

If I lived closer, I would definitely attend. This one despicable #Catholic #doctrine has been responsible for countless #suffering & #ReligiousTrauma #greed #power The legal and theological theory of the Doctrine of Christian Discovery https://religionnews.com/2023/10/02/the-legal-and-theological-theory-of-the-doctrine-of-christian-discovery/

symfonystation, to Symfony
@symfonystation@phpc.social avatar

deleted_by_author

  • Loading...
  • dgoosens,
    @dgoosens@phpc.social avatar

    @symfonystation

    very elegant and smart solution @digitalcraftsman !

    veroandi, to programming
    @veroandi@mastodon.social avatar

    "Symfony and Doctrine’s documentation has a slight flaw: they don’t use constructors for DTOs."

    https://withinboredom.info/2023/08/11/symfony-doctrines-docs-has-caused-more-bugs-than-anything-else/
    #programming #php #symfony #doctrine

    greg0ire, to random
    @greg0ire@phpc.social avatar

    Came back from a 3-days hackathon with @morozov @beberlei @mpdude @derrabus , and it was a blast! I'm so happy to see this team thriving, and on top of this, I'm very, very proud that we were able to make something big come out of this. If I piqued your curiosity, you can read more on this at https://www.doctrine-project.org/2023/10/11/orm3-beta1-dbal4-rc1-future-plans.html

    syntaxseed, to Symfony
    @syntaxseed@phpc.social avatar

    Enjoying more #Symfony work today.

    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().

    #PHP

    mobileatom, to Symfony
    @mobileatom@flipboard.com avatar
    doboprobodyne, to nuclear
    @doboprobodyne@mathstodon.xyz avatar

    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).

    https://phdcomics.com/comics/archive.php?comicid=1988

    Hashtags for visibility; and don't necessarily represent ideology of the poster. Feel free to boost/ repost/ add your own if you think more visibility/though about this is useful to society:

    symfonystation, to Symfony
    @symfonystation@newsletter.mobileatom.net avatar
    SenseException, to random German
    @SenseException@phpc.social avatar

    The 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.

    SenseException, to random German
    @SenseException@phpc.social avatar

    Phoenix is reopening the case for a third time.

    ramsey, to random
    @ramsey@phpc.social avatar

    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. 🎉🎊🥳

    #PHP #UUID #Doctrine

    https://github.com/ramsey/uuid-doctrine

    SenseException, to ai German
    @SenseException@phpc.social avatar

    It's interesting how overly polite generated PR content is by default. At least during my reviews of 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". 😅

    KristianHarstad, to Russia
    @KristianHarstad@mastodon.cloud avatar
    mobileatom, to Symfony
    @mobileatom@flipboard.com avatar
    greg0ire, to random
    @greg0ire@phpc.social avatar

    doctrine/orm 2 could not use native type declarations everywhere for backward compatibility reasons. In 3.0.0, native type declarations will be enforced at the coding standard level: https://github.com/doctrine/orm/pull/11013

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines