Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- djCategory:
- actAs:
- NestedSet:
- hasManyRoots: true
- rootColumnName: root_id
- columns:
- ...
- relations:
- djProduct:
- foreignAlias: Categories
- alias: Products
- class: djProduct
- refClass: djCategoryProduct
- ==================
- djCategoryProduct:
- columns:
- dj_category_id: { type: integer, notnull: true }
- dj_product_id: { type: integer, notnull: true }
- relations:
- djCategory:
- foreignAlias: CategoryProduct
- onDelete: cascade
- djProduct:
- foreignAlias: CategoryProduct
- onDelete: cascade
- ======================
- djProduct:
- actAs:
- Timestampable: ~
- I18n:
- fields: [ name, description, price, promotion_price ]
- actAs:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: true
- columns:
- name: { type: string(255), notnull: true }
- description: { type: blob }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement