Advertisement
Guest User

Untitled

a guest
Mar 4th, 2010
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.94 KB | None | 0 0
  1. djCategory:
  2.   actAs:
  3.     NestedSet:
  4.       hasManyRoots: true
  5.       rootColumnName: root_id
  6.   columns:
  7.     ...
  8.   relations:
  9.     djProduct:
  10.       foreignAlias: Categories
  11.       alias: Products
  12.       class: djProduct
  13.       refClass: djCategoryProduct
  14.  
  15. ==================
  16. djCategoryProduct:
  17.   columns:
  18.     dj_category_id: { type: integer, notnull: true }
  19.     dj_product_id: { type: integer, notnull: true }
  20.   relations:
  21.     djCategory:
  22.       foreignAlias: CategoryProduct
  23.       onDelete:     cascade
  24.     djProduct:
  25.       foreignAlias: CategoryProduct
  26.       onDelete:     cascade
  27. ======================
  28.  
  29. djProduct:
  30.   actAs:
  31.     Timestampable: ~
  32.     I18n:
  33.       fields: [ name, description, price, promotion_price ]
  34.       actAs:
  35.         Sluggable:
  36.           unique: true
  37.           fields: [name]
  38.           canUpdate: true
  39.   columns:
  40.     name:             { type: string(255), notnull: true }
  41.     description:      { type: blob }
  42.     ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement