Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 20th, 2012  |  syntax: None  |  size: 0.98 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. symfony - sfDoctrineGuard - loading fixture data
  2. sfGuardUserProfile:
  3.   actAs:
  4.     Timestampable: ~
  5.   columns:
  6.     user_id:
  7.       type: bigint(20)
  8.       notnull: true
  9.       default:
  10.       unsigned: false
  11.       primary: false
  12.       unique: false
  13.       autoincrement: false
  14.     email_new:
  15.       type: string(255)
  16.       unique: true
  17.     firstname:
  18.       type: string(255)
  19.     lastname:
  20.       type: string(255)
  21.     city:
  22.       type: varchar(255)
  23.     validate_at:
  24.       type: timestamp
  25.     validate:
  26.       type: string(33)
  27.   relations:
  28.     User:
  29.       class: sfGuardUser
  30.       foreign: id
  31.       local: user_id
  32.       type: one
  33.       onDelete: cascade
  34.       foreignType: one
  35.       foreignAlias: Profile
  36.   indexes:
  37.     validate:
  38.       fields: [validate]
  39.        
  40. user_id:
  41.   type: bigint(20)
  42.        
  43. sfGuardUser:
  44.   type: integer()
  45.        
  46. sfGuardUserProfile:
  47.     bob_profile:
  48.         sfGuardUser: bob  # Set the link
  49.         firstname: bob
  50.         # bobs_profile fixtures
  51.  
  52.  
  53. sfGuardUser:
  54.     bob:
  55.        # bobs fixtures