Yes but i don't know to set the nestedset...I read the documentation
about nestedset on the Doctrine's documentation but i dont
understand..

It's my schema.yml :

Envdomaine:
  actAs: [NestedSet]
  columns:
    id:
      type:             integer(8)
      notnull:          true
      autoincrement:    true
      primary:          true
    designationdomaine:
      type:             string(40)
  relations:
    Envpersonnel:
      class :           Envpersonnel
      local:            id
      foreign:          domaine_id
      foreignAlias:     Envdomaines
      foreignType:      many
      type:             one
    Envservice:
      class :           Envservice
      local:            id
      foreign:          domaine_id
      foreignAlias:     Envdomaines
      foreignType:      many
      type:             one
    Envsite:
      class :           Envsite
      local:            id
      foreign:          domaine_id
      foreignAlias:     Envdomaines
      foreignType:      many
      type:             one
  options:
    collate: utf8_bin
    charset: utf8

Envservice:
  actAs: [NestedSet]
  columns:
    id:
      type:             integer(8)
      notnull:          true
      autoincrement:    true
      primary:          true
    codeservice:
      type:             string(40)
    designationservice:
      type:             string(80)
    domaine_id:
      type:             integer(8)
  relations:
    Envpersonnel:
      class :           Envpersonnel
      local:            id
      foreign:          service_id
      foreignAlias:     Envservices
      foreignType:      many
      type:             one
  options:
    collate: utf8_bin
    charset: utf8

Envsite:
  actAs: [NestedSet]
  columns:
    id:
      type:             integer(8)
      notnull:          true
      autoincrement:    true
      primary:          true
    designationsite:
      type:             string(80)
    domaine_id:
      type:             integer(8)
  relations:
    Envpersonnel:
      class :           Envpersonnel
      local:            id
      foreign:          site_id
      foreignAlias:     Envsites
      foreignType:      many
      type:             one
  options:
    collate: utf8_bin
    charset: utf8

Envpersonnel:
  actAs: [NestedSet]
  columns:
    id:
      type:             integer(8)
      notnull:          true
      autoincrement:    true
      primary:          true
    numeropersonnel:
      type:             integer(4)
    initialespersonnel:
      type:             string(6)
    nompersonnel:
      type:             string(40)
    domaine_id:
      type:             integer(8)
    service_id:
      type:             integer(8)
    site_id:
      type:             integer(8)
  options:
    collate: utf8_bin
    charset: utf8

I add this lign for NestedSet but i don't know if it does work !:

  actAs: [NestedSet]

On 4 déc, 15:48, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote:
> On Wed, Dec 3, 2008 at 12:59 PM, Necho <[EMAIL PROTECTED]> wrote:
> > I would like to use the sfdoctrinetreeplugin...but i don't know the
> > documentation. I have symfony 1.2. Could i have more explication and a
> > simple example please?
>
> http://www.symfony-project.org/plugins/sfDoctrineTreePlugin/0_9_1?tab...
>
> Isn't this sufficient to start?
>
> ++
>
> --
> Nicolas 
> Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com
> Phone: +33 660 92 08 67
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to