I don't think that we ever tested using embeddables as identifiers.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 9 June 2015 at 19:31, David Adams <[email protected]> wrote:

> I have no trouble using embeddables except for when using one for an id
> object. Here's my mapping file.
>
> Acme\Project\Model\User\Entity\User:
>     type: entity
>     table: app_user
>     id:
>         id:
>             type: guid
>             generator:
>                 strategy: NONE
>     embedded:
>         email:
>             class: Acme\Project\Model\User\ValueObject\Email
>             columnPrefix: false
>         username:
>             class: Acme\Project\Model\User\ValueObject\Username
>             columnPrefix: false
>         password:
>             class: Acme\Project\Model\User\ValueObject\EncodedPassword
>             columnPrefix: false
>         confirmationToken:
>             class: Acme\Project\Model\User\ValueObject\ConfirmationToken
>             columnPrefix: false
>     fields:
>         createdAt:
>             type: datetimetz
>             column: created_at
>
> How do I configure the id property to be an instance of *UserId*? If I
> define it under *embedded:*, doctrine complains about it being defined
> twice. If I then remove the *id: *section, doctrine complains that
> there's not an id field defined for the entity. Any ideas?
>
> --
> 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 http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to