Liogate
Liogate

Reputation: 165

Doctrine ODM Mongo DB Hydrator

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 !

Upvotes: 0

Views: 920

Answers (1)

malarzm
malarzm

Reputation: 2966

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

Upvotes: 1

Related Questions