I suggest adding dedicated functions that given a PDO instance and the parameters you needed do what you want to do.
And yes, you are adding new stuff: php-src has this widespread misunderstanding that "reproducing new lower layer behaviour in upper layers" should happen no matter what. On 23 Aug 2017 6:39 AM, "BohwaZ/PHP" <p...@bohwaz.net> wrote: > PDO is already a mess, and adding method that appear/disappear dynamically >> whether you enable an extension or not... is a horror show. >> >> From my PoV, since we (doctrine) have to abstract away from it all the >> time, we'd rather have it as tidy and well-thought-out as possible, >> especially since there already is so much damage done. >> > > Yes I agree, but it's not the point, this behaviour already exists, I'm > not introducing anything new here. > > Couldn't care less about exposed/unexposed features if the endpoints are on >> the wrong object, or cause even more weirdness to work with. It is not >> helpful: it's just more tech debt dumped on millions of consumers. >> > > I care because I need those features in my projects, and I'm not the only > one. > > But if those late-loading methods don't suit you, what do you propose > instead? >