I should add even more data in fixtures.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 10 Dec 2012 02:05:36 +0000 (03:05 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 10 Dec 2012 02:05:36 +0000 (03:05 +0100)
Because I do not have backoffice it is going to be
needed in order to show more data related to GeneralCategory table
during the speech at the university.

Load data without causing any trouble in this way:
php symfony doctrine:data-load

data/fixtures/fixtures.yml

index f8c20b4..a69100a 100644 (file)
@@ -121,9 +121,14 @@ GeneralCategory:
   GeneralCategory_Root:
     children:
       GeneralCategory_1:
+        children:
+          GeneralCategory_5:
+            children:
+              GeneralCategory_6:
       GeneralCategory_2:
         children:
           GeneralCategory_3:
+          GeneralCategory_4:
 
 GeneralCategoryDescription:
   Root_Product:  #The root node
@@ -146,6 +151,21 @@ GeneralCategoryDescription:
     GeneralCategory: GeneralCategory_3
     general_categ_name: Zapatillas de deporte
     general_categ_description: Calzado deportivo
+  Mocasines:
+    Language: Spanish
+    GeneralCategory: GeneralCategory_4
+    general_categ_name: Mocasines
+    general_categ_description: Mocasines
+  Palmeras:
+    Language: Spanish
+    GeneralCategory: GeneralCategory_5
+    general_categ_name: Palmeras
+    general_categ_description: Palmeras de chocolate y azĂșcar
+  Palmeras_de_chocolate:
+    Language: Spanish
+    GeneralCategory: GeneralCategory_6
+    general_categ_name: Palmeras de chocolate
+    general_categ_description: Palmeras de chocolate sin azĂșcar
 
 Ad:
   BabuchasVerdes: