Thanks for the quick reply and explaining it to me!

I used the YAML format and according to the documentation, I generated
the yaml format to the "src/{namespace}/{name of bundle}/Resources/
config/doctrine/metadata/orm

my 'User.dcm.yml" look like this

User:
  type: entity
  table: user
  fields:
    id:
      id: true
      type: bigint
      nullable: false
      generator:
        strategy: IDENTITY
    userLogin:
      type: string
      length: 64
      fixed: false
      nullable: false
      column: user_login
    userPass:
      type: string
      length: 64
      fixed: false
      nullable: false
      column: user_pass
  manyToMany:
    resource:
      targetEntity: Resource
      cascade: {  }
      mappedBy: null
      inversedBy: user
      joinTable:
        name: user_has_resource
        joinColumns:
          -
            name: user_id
            referencedColumnName: id
        inverseJoinColumns:
          -
            name: resource_id
            referencedColumnName: id
      orderBy: null
    role:
      targetEntity: Role
      cascade: {  }
      mappedBy: null
      inversedBy: user
      joinTable:
        name: user_has_role
        joinColumns:
          -
            name: user_id
            referencedColumnName: id
        inverseJoinColumns:
          -
            name: role_id
            referencedColumnName: id
      orderBy: null
  lifecycleCallbacks: {  }

Is there anything wrong ?

On Apr 6, 9:31 pm, Christophe COEVOET <s...@notk.org> wrote:
> Le 06/04/2011 15:26, Joni a crit :> Which entities are you referring to?
>
> > I'm kinda confused.
>
> > is it the .dcm.yml files?
>
> > Or the mapping insidie the "Entity.php" class file ?
>
> An entity is a PHP class which is meant to be persisted by Doctrine.
> And the mapping of the entity can be in different places depending of
> which format you use: in
> Resources/config/doctrine/metadata/orm/*.dcm.yml when using YAML (same
> place for XML) or in the class itself when using annotations.
>
> So first question; which format do you use ?
> Second question: where did you place it ?
> Third one: how does it look ?
>
> --
> Christophe | Stof

-- 
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to