Hi, there is my problem :
(http://pastie.textmate.org/private/egnbbqju5q5rsudslsipag)

Some resources (here "field") are created by Members and affected to
Entities (here Member toto, but it could be a Group etc...).

-- schema.yml --
Resource:
  actAs:
    Timestampable: ~
  columns:
    member_id: { type: integer, notnull: true }
    entity_id: { type: integer, notnull: true }
    *
    created_at: ~
    updated_at: ~
  relations:
    Member: { local: member_id, foreign: id, onDelete: CASCADE }
    Entity:
      local: entity_id
      foreign: id
      onDelete: CASCADE

Entity:
  actAs:
    Timestampable: ~
  columns:
    id: { type: integer, primary: true, autoincrement: true }
    *
    created_at: ~
    updated_at: ~
  relations:
    Resource:
      type: many
      local: id
      foreign: entity_id

Member:
  inheritance:
    type:             concrete
    extends:          Entity
  actAs:
    Sluggable: { fields: [username], uniqueBy: [username] }
  columns:
    username: { type: string(255), notnull: true, unique: true }
    password: { type: string(255), notnull: true }
    email: { type: string(255), notnull: true, unique: true }
    *

Field:
  inheritance:
    type:             concrete
    extends:          Resource
  columns:
    photo: { type: string(255) }
    photo2: { type: string(255) }

-- fixtures.yml --
Member:
  toto:
    username: toto
    password: test
    email: t...@toto.com
    created_at: ~
    updated_at: ~

Field:
  home:
    Member: toto
    Entity: toto
    photo: /images/fixtures/field.jpg
    photo2: /images/blank_300.jpg

-> cmd data-load return: "Invalid row key specified: <entity> toto,
referred to in <field> home"
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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