Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Scheme by Evgeny ( 17 years ago )
Product:
  relations:
    LinkedTo:
      class: Product
      local: product1_id
      foreign: product2_id
      refClass: Product__Product
      foreignAlias: LinkedWith  
        
Product__Product:
  columns:
    product1_id:
      type: integer
      primary: true
    product2_id:
      type: integer
      primary: true
  relations:
    Product1:
      class: Product
      local: product1_id
      onDelete: CASCADE
    Product2:
      class: Product
      local: product2_id
      onDelete: CASCADE

 

Revise this Paste

Parent: 11907
Your Name: Code Language: