1
0
mirror of synced 2024-12-05 03:06:05 +03:00

#1209 DDC-3427 - documenting s/EntityManager/EntityManagerInterface signature BC breaks

This commit is contained in:
Marco Pivetta 2015-01-16 14:55:16 +01:00
parent 339bd23ac8
commit efe9e3ab28

View File

@ -1,5 +1,16 @@
# Upgrade to 2.5
## Minor BC BREAK: ``EntityManagerInterface`` instead of ``EntityManager`` in type-hints
As of 2.5, classes requiring the ``EntityManager`` in any method signature will now require
an ``EntityManagerInterface`` instead.
If you are extending any of the following classes, then you need to check following
signatures:
- ``Doctrine\ORM\Id\AbstractIdGenerator#generate(EntityManagerInterface $em, $entity)``
- ``Doctrine\ORM\Tools\DebugUnitOfWorkListener#dumpIdentityMap(EntityManagerInterface $em)``
- ``Doctrine\ORM\Mapping\ClassMetadataFactory#setEntityManager(EntityManagerInterface $em)``
## Minor BC BREAK: Custom Hydrators API change
As of 2.5, `AbstractHydrator` does not enforce the usage of cache as part of