utf8mb4
on the
MySQL platform and to utf8
on all other platforms.Doctrine\Bundle\DoctrineBundle\Command
requires a ManagerRegistry
instance when instantiating.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.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.
ContainerAwareEntityListenerResolver
, use
ContainerEntityListenerResolver
instead.Registry
no longer implements Symfony\Bridge\Doctrine\RegistryInterface
.Symfony\Bridge\Doctrine\RegistryInterface
interface is no longer aliased
to the doctrine
service, use Doctrine\Common\Persistence\ManagerRegistry
instead.Doctrine\Common\Persistence\ObjectManager
interface is no longer
aliased to the doctrine.orm.entity_manager
service, use
Doctrine\ORM\EntityManagerInterface
instead.requiresSQLCommentHint()
method of
the type.commented
configuration option for types will be dropped in a future
release. You should not use it.If all of these are true:
Symfony\Bundle\FrameworkBundle\Client::disableReboot()
in your test caseSymfony\Bundle\FrameworkBundle\Client::request()
etc.) within your test caseDoctrine\Persistence\ObjectManager::refresh
)Your test case will fail since DoctrineBundle
2.0.3, as identity map is now cleared between each request
to better simulate real requests and avoid memory leaks. You have two options to solve this:
ObjectManager::refresh($entity)
with $entity = ObjectManager::find($entity->getId())
. This is the recommended solution.Write a compiler pass which restores old behaviour, e.g. by adding the following to your Kernel
class:
protected function build(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
{
parent::build($container);
if ($this->environment === 'test') {
$container->addCompilerPass(new class implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface {
public function process(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
{
$container->getDefinition('doctrine')->clearTag('kernel.reset');
}
}, \Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
}
}