Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[AnnotationDriver] error in hydration classes when the property name is not equal to the attribute name #394

Closed
idetia opened this Issue · 3 comments

3 participants

@idetia

This generate a bad hydrated class:

/**
 * @ODM\EmbedMany(
 *     targetDocument="UserBundle\Document\Message",
 *     name="incoming_messages"
 * )
 */
protected $incomingMessages = array();

And changing the attribute works fine:

/**
 * @ODM\EmbedMany(
 *     targetDocument="UserBundle\Document\Message",
 *     name="incomingMessages"
 * )
 */
protected $incomingMessages = array();
@jwage
Owner

What is the error you get?

@idetia

The object doesn't contain any data in the bad-hydrated class property

@malarzm
Collaborator

This is used at least few times across tests, everything seems to be fine now

@malarzm malarzm closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.