1

I have this basic document and embedded document inside it i took it from the official doc

User:
  type: document
  embedOne:
    address:
      targetDocument: Address

Address:
  type: embeddedDocument

When i load the user document i expect the address to be loaded as well but instead the property is empty.

How can i tell doctrine to load all the embedded documents?

Thanks in advance

bitgandtter
  • 2,179
  • 6
  • 31
  • 60
  • What data is coming from database? Have you cleared the cache if the field was added just before? – malarzm Aug 11 '16 at 16:33
  • @malarzm only the parent document is been hydrated, the address embedded document is not, i clear the cache nothing happens – bitgandtter Aug 11 '16 at 16:35
  • Unfortunately don't know what might be wrong, normally single embedded documents are hydrated immediately. – malarzm Aug 12 '16 at 06:11

0 Answers0