Skip to content

Instantly share code, notes, and snippets.

@jarod51
Created January 26, 2011 15:43
Show Gist options
  • Save jarod51/796876 to your computer and use it in GitHub Desktop.
Save jarod51/796876 to your computer and use it in GitHub Desktop.
Entity:
actAs:
Timestampable: ~
Sluggable:
fields: [title]
NestedSet: ~
Commentable: ~
columns:
entity_id:
type: string
primary: true
business_id:
type: integer
title:
type: string(255)
is_active: { type: boolean, default: true }
type_id: { type: string(25) }
logo: { type: string(255) }
relations:
Business:
local: business_id
onDelete: CASCADE
foreignAlias: Entities
sfGuardUser:
refClass: sfGuardUserEntity
local: entity_id
foreign: user_id
foreignAlias: Entities
indexes:
is_active_index:
fields: [is_active]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment