Skip to content

Doctrine Proxy not working ? #204

Description

@barbuslex

Hi,

I have a problem with Doctrine Proxy Matcher/Filter.

I have this code (from documentation) :

$duplicate = new DeepCopy(true);
$duplicate->addFilter(new ChainableFilter(new DoctrineProxyFilter()), new DoctrineProxyMatcher());
$duplicate->addFilter(new SetNullFilter(), new PropertyNameMatcher('id'));

$object = $demande->getResponsable();
$copy = $duplicate->copy($object);
dd($copy, $object);

Here the result :
Image

The id is not set to null...

Have you an idea ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions