1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Model\MonAppli\MonAppliBundle\Produit:
table_name: produit
columns:
id: { id: auto, type: integer }
ean: { type: string, length: 13 }
nom: { type: string, length: 250 }
many_to_one:
categorie: { class: Model\MonAppli\MonAppliBundle\Categorie, inversed: produits }
indexes:
ean: { colums: ['ean'] }
behaviors:
-
class: Doctrator/Behavior/Timestampable
class: Doctrator/Behavior/Sluggable
options: { from_column: nom, slug_column: url, update: true }
class: Doctrator/Behavior/Taggable
class: Doctrator/Behavior/Sortable
Model\MonAppli\MonAppliBundle\Categorie:
table_name: categorie
columns:
id: { id: auto, type: integer }
nom: { type: string, length: 250 }
behaviors:
-
class: Doctrator/Behavior/Sluggable
class: Doctrator/Behavior/Taggable
class: Doctrator/Behavior/Sortable
options: {} |
Partager