Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.00 KB | None | 0 0
  1. Hi
  2.  
  3. I am some trobule loading fixture data, that I have added manually in my admin backend and then simply exported the data using 'symfony doctrine:data-dump'
  4.  
  5. schema.yml
  6.  
  7.     sfGuardUser:
  8.       actAs: [Timestampable]
  9.       columns:
  10.         email_address:
  11.           type: string(255)
  12.           notnull: true
  13.           unique: true
  14.         username:
  15.           type: string(128)
  16.           notnull: true
  17.           unique: true
  18.         first_name:
  19.           type: varchar(255)
  20.         last_name:
  21.           type: varchar(255)
  22.         algorithm:
  23.           type: string(128)
  24.           default: sha1
  25.           notnull: true
  26.         salt: string(128)
  27.         password: string(128)
  28.         is_active:
  29.           type: boolean
  30.           default: 1
  31.         is_super_admin:
  32.           type: boolean
  33.           default: false
  34.         last_login:
  35.           type: timestamp
  36.       indexes:
  37.         is_active_idx:
  38.           fields: [is_active]
  39.       relations:
  40.         Groups:
  41.           class: sfGuardGroup
  42.           local: user_id
  43.           foreign: group_id
  44.           refClass: sfGuardUserGroup
  45.           foreignAlias: Users
  46.         Permissions:
  47.           class: sfGuardPermission
  48.           local: user_id
  49.           foreign: permission_id
  50.           refClass: sfGuardUserPermission
  51.           foreignAlias: Users
  52.  
  53.     sfGuardUserProfile:
  54.       actAs:
  55.         Timestampable: ~
  56.       columns:
  57.         user_id:
  58.           type: integer(11)
  59.           notnull: true
  60.           default:
  61.           unsigned: false
  62.           primary: false
  63.           unique: false
  64.           autoincrement: false
  65.         email_new:
  66.           type: string(255)
  67.           unique: true
  68.         firstname:
  69.           type: string(255)
  70.         lastname:
  71.           type: string(255)
  72.         validate_at:
  73.           type: timestamp
  74.         validate:
  75.           type: string(33)
  76.      relations:
  77.         User:        { onDelete: CASCADE, local: user_id, foreign: id, type: one, foreignType: one, foreignAlias: Profile, alias: User }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement