Skip to content

jms_job_safe_object deprecation warning triggered in bundle extension #231

Description

@bluser86

The bundle extension triggers a deprecation warning when configuring the "jms_job_safe_object" doctrine type.

    public function prepend(ContainerBuilder $container)
    {
        $container->prependExtensionConfig('doctrine', array(
            'dbal' => array(
                'types' => array(
                    'jms_job_safe_object' => array(
                        'class' => SafeObjectType::class,
                        'commented' => true,
                    )
                )
            )
        ));
    }

The received deprecation warning is emitted by the \Doctrine\Bundle\DoctrineBundle\ConnectionFactory:

User Deprecated: The type "jms_job_safe_object" was explicitly marked as commented in its configuration. This is no longer necessary and will be removed in DoctrineBundle 2.0. Please remove the "commented" attribute from the type configuration.

Our current version of the job queue bundle is 1.4.3 and the doctrine bundle is 1.11.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions