Hi,

not really sure whats going on here.
at any rate when i extend the base User class of the DoctrineUserBundle and 
then try to generate:entities, it complains there is no PK defined. the PK is 
however defined inside the base class configuration.
http://github.com/knplabs/DoctrineUserBundle/blob/master/Resources/config/doctrine/metadata/orm/Bundle.DoctrineUserBundle.Entity.User.dcm.xml

now if i add the same PK definition into the definition of the extending class, 
then i get an error that there is a duplicate PK definition when i interact 
with the model or try to generate:proxies.
Application\FooBundle\Entity\User:
    type: entity
    table: doctrine_user_user
    repositoryClass: Bundle\DoctrineUserBundle\Entity\UserRepository
    id:
        id:
            type: integer
            generator:
                strategy: AUTO
    fields:
        firstname:
            type: string
            length: 255
        lastname:
            type: string
            length: 255

if i then remove the id definition from the base class and add the same 
definition to the extending class, generate:entities works and when interacting 
with the models i dont get any error anymore.

however then i get an error that class Permission does not exist when i try to 
generate:proxies. not sure if this issue is related to the above.

regards,
Lukas Kahwe Smith
[email protected]



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to