Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
UPGRADE FROM 1.x to 2.0
=======================
PHP and Symfony version support
-------------------------------
* Support for PHP 5.5, 5.6 and 7.0 was dropped
* Support for unsupported Symfony versions was dropped. The bundle now supports
Symfony 3.4 LTS and 4.1 or newer.
* Support for Twig 1.34 and below as well as 2.4 and below (for 2.x) releases
was dropped.
* When no charset parameter is defined, it now defaults to `utf8mb4` on the
MySQL platform and to `utf8` on all other platforms.
Commands
--------
* `Doctrine\Bundle\DoctrineBundle\Command` requires a `ManagerRegistry`
instance when instantiating.
* Dropped `setContainer` and `getContainer` in
`Doctrine\Bundle\DoctrineBundle\Command`.
* `Doctrine\Bundle\DoctrineBundle\Command` no longer implements
`ContainerAwareInterface`.
* `Doctrine\Bundle\DoctrineBundle\Command\GenerateEntitiesDoctrineCommand` was
dropped in favour of the MakerBundle.
Deprecation of DoctrineCacheBundle
----------------------------------
Configuring caches through DoctrineCacheBundle is no longer possible. Please use
symfony/cache through the `pool` type or configure your cache services manually
and use the `service` type.
Mapping
-------
* Dropped `ContainerAwareEntityListenerResolver`, use
`ContainerEntityListenerResolver` instead.
Registry
--------
* `Registry` no longer implements `Symfony\Bridge\Doctrine\RegistryInterface`.
* Removed all deprecated entity manager specific methods from the registry.
Service aliases
---------------
* The `Symfony\Bridge\Doctrine\RegistryInterface` interface is no longer aliased
to the `doctrine` service, use `Doctrine\Common\Persistence\ManagerRegistry`
instead.
* The `Doctrine\Common\Persistence\ObjectManager` interface is no longer
aliased to the `doctrine.orm.entity_manager` service, use
`Doctrine\ORM\EntityManagerInterface` instead.
Types
-----
* Marking types as commented in the configuration is no longer supported.
Instead, mark them commented using the `requiresSQLCommentHint()` method of
the type.
* The `commented` configuration option for types will be dropped in a future
release. You should not use it.