Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1018 Bytes

UPGRADE.md

File metadata and controls

35 lines (23 loc) · 1018 Bytes

Note about upgrading: Doctrine uses static and runtime mechanisms to raise awareness about deprecated code.

  • Use of @deprecated docblock that is detected by IDEs (like PHPStorm) or Static Analysis tools (like Psalm, phpstan)
  • Use of our low-overhead runtime deprecation API, details: https://github.com/doctrine/deprecations/

Upgrade to 1.6

BC BREAK: CircularReferenceException no longer extends Doctrine\Common\CommonException

We don't think anyone catches this exception in a catch (CommonException) statement.

doctrine/data-fixtures no longer requires doctrine/common

If you rely on types from doctrine/common, you should require that package, regardless of whether other packages require it.

Between v1.0.0-ALPHA1 and v1.0.0-ALPHA2

The FixtureInterface was changed from

interface FixtureInterface
{
    load($manager);
}

to

use Doctrine\Common\Persistence\ObjectManager;

interface FixtureInterface
{
    load(ObjectManager $manager);
}