Skip to content

Instantly share code, notes, and snippets.

@donut
Created February 17, 2009 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donut/65873 to your computer and use it in GitHub Desktop.
Save donut/65873 to your computer and use it in GitHub Desktop.
# All id type columns are set to integer with a length of 4 since this forces Doctrine to use integer type instead of bigint. This is especially important for working with sfGuardUserPlugin.
sfGuardUserProfile:
actAs: { Timestampable: ~ }
columns:
id: { type: integer(4), primary: true, autoincrement: true }
user_id: integer(4)
first_name: varchar(50)
last_name: varchar(50)
email: varchar(100)
phone: varchar(25)
address: varchar(255)
city: varchar(255)
state: varchar(50)
zip: varchar(50)
relations:
sfGuardUser: { local: user_id, foreign: id, foreignAlias: profile, onDelete: cascade }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment