Hi,

I'm playing around with the nestedSet behaviour using Doctrine and
Symfony 1.2.4 and I can't seem to get my fixtures to load.

Here's the relevant portion of schema.yml:

CmsMenu:
  actAs:
    NestedSet:
      hasManyRoots: true
      rootColumnName: root_id
  columns:
    id:
      type: integer(4)
      unsigned: true
      autoincrement: true
      primary: true
    label:
      type: string(64)
      notnull: true
      notblank: true
    path:
      type: string(128)
      notnull: true
      notblank: true
      nospace: true
    description:
      type: string(255)

And here's the problem fixture:

CmsMenu:
  Item_1:
    label: Home
    path: '/'
  Item_2:
    label: About
    path: '/about'
    children:
      Item_3:
        label: Team
        path: '/team'
      Item_4:
        label: Partners
        path: '/partners'

When I run 'symfony doctrine:data-load' at the CLI the command fails
with this message:

'Unknown method CmsMenu::setChildren'

Oddly enough if I add a populated children key under Item_1 it works
but I don't want children under every root item.

Any help is much appreciated,

Greg

--~--~---------~--~----~------------~-------~--~----~
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