Answered here: https://github.com/doctrine/doctrine2/issues/6855

On Tuesday, 5 July 2016 10:39:21 UTC+2, Holtkamp wrote:
>
> I am trying to have a "postLoad" callback invoked on an Embeddable in 
> order to load a Currency Entity based on its identifying code (for example 
> 'EUR'). 
>
> When the method is not available in the Embeddable, an exception is 
> thrown: 
>
> "Message: Entity 'Project\Domain\ValueObject\Money' has no method 
> 'initializeCurrency' to be registered as lifecycle callback."
>
> Ok:
> - it seems the configuration is respected. 
> - the exception message does "think" we are dealing with an Entity...
> - when the 'initializeCurrency()' is added to 
> Project\Domain\ValueObject\Money, it seems never invoked...
>
> Bottomline, are lifecycle callbacks supported for Embeddables? 
>
> Cheers
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to