Skip to content

Instantly share code, notes, and snippets.

@Vp3n
Created January 22, 2012 22:21
Show Gist options
  • Save Vp3n/1659126 to your computer and use it in GitHub Desktop.
Save Vp3n/1659126 to your computer and use it in GitHub Desktop.
softdelete doctrine relations
Article:
actAs:
SoftDelete: ~
columns:
id: { type: integer(4), primary: true, autoincrement: true }
auteur_id: { type: integer(4), notnull: true }
titre: { type: string(255), notnull: true }
contenu: { type: clob, notnull: true }
Relations:
Auteur:
local: auteur_id
foreign: id
onDelete: CASCADE
Auteur:
actAs:
SoftDelete: ~
columns:
id: { type: integer(4), primary: true, autoincrement: true }
nom: { type: string(255), notnull: true }
prenom: { type: string(255), notnull: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment