0
votes

I'm trying to handle hydrator of doctrine for avoiding this issue:

The \"MongoDBODMProxies\__CG__\Foo\MyBundle\Document\MyDocument\" document with identifier \"53aae4fe8b589793538b456c\" could not be found."

I tried to use orphanRemoval=true on my ReferenceOne but it still doesn't work.

Here is my unidirectional structure to avoid complex/redondent data:

DocB ==> $fieldDocA ==> ReferenceOne(targetDocument="DocA") ==> DocA

When I delete DocA, I want that Symfony delete automatically all documents where DocB contains $fieldDocA === DocA but I found nothing to do it properly on internet.

Thanks in advance for your help !

1

1 Answers

0
votes

I believe your question resembles a feature request we rejected due to already existing solutions: