Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Created September 25, 2013 15:37
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 leonguyen/6701498 to your computer and use it in GitHub Desktop.
Save leonguyen/6701498 to your computer and use it in GitHub Desktop.
CI Lab: Article YAML mapping files
Entities\Article:
type: entity
table: articles
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
title:
type: string
length: 255
nullable: false
content:
type: text
nullable: false
created:
type: datetime
nullable: false
manyToOne:
user:
targetEntity: User
joinColumns:
user_id:
referencedColumnName: id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment