How to break an entire ecosystem by publishing a release

The Doctrine Framework

How NOT to build a new major version

Modernising popular packages

To 2.0 and beyond

Summarising the upgrade process

  • doctrine/persistence 1.3.0 introduces a deprecation layer, informing users of upcoming BC breaks and provides the new API. Users should use ^1.3.3 as constraint in composer.json and start fixing deprecation messages.
  • doctrine/persistence 2.0 will drop the deprecated API from the Doctrine\Common\Persistence namespace and add argument type declarations to the new API. Users should use ^1.3.3 || ^2.0 as constraint in composer.json. Some additional autoload calls may be required to ensure class aliases are properly loaded. Please check the blog post on type deprecation for details, as this cannot be easily summarised.
  • doctrine/persistence 3.0 will be released later, dropping all deprecated API and adding return type declarations. At this point, users should add both argument and return type declarations, then use ^2.0 || ^3.0 as constraint in composer.json.

--

--

--

Doctrine coordinator and MongoDB ODM maintainer. I break stuff so you don’t have to. Lead Engineer @mongodb — join me in making databases more fun to use.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bye-Bye Progress Dialog, Hello Alert Dialog

Understanding Memoization.

End to End API Testing using rest-assured.

Got sued over website accessibility?

Person running finger down invoice on laptop screen taking notes on paper in a binder

Ode to Elm

How to use AWS Application Migration Service ( Onpremise to AWS Cloud Mumbai)

How to Fix Critical Error in WordPress

All About AWS Analytics and Media Services

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
alcaeus

alcaeus

Doctrine coordinator and MongoDB ODM maintainer. I break stuff so you don’t have to. Lead Engineer @mongodb — join me in making databases more fun to use.

More from Medium

Sending transactional emails with a third-party service on Symfony

PHP,MYSQL..

I created the same Vuetify WebApp 14 times…

Build Your Symfony Applications with ease using Ecotone