Преглед на файлове

Fix indentations in code-block (#4472)

Alan Bondarchuk преди 8 години
родител
ревизия
9450ef58d9
променени са 1 файла, в които са добавени 11 реда и са изтрити 11 реда
  1. 11 11
      Resources/doc/cookbook/recipe_file_uploads.rst

+ 11 - 11
Resources/doc/cookbook/recipe_file_uploads.rst

@@ -49,20 +49,20 @@ upload timestamp.
             repositoryClass: AppBundle\Entity\Repositories\ImageRepository
             table: images
             id:
-            id:
-                type:         integer
-                generator:    { strategy: AUTO }
+                id:
+                    type:         integer
+                    generator:    { strategy: AUTO }
             fields:
-            filename:
-                type:         string
-                length:       100
+                filename:
+                    type:         string
+                    length:       100
 
-            # changed when files are uploaded, to force preUpdate and postUpdate to fire
-            updated:
-                type:         datetime
-                nullable:     true
+                # changed when files are uploaded, to force preUpdate and postUpdate to fire
+                updated:
+                    type:         datetime
+                    nullable:     true
 
-            # ... other fields ...
+                # ... other fields ...
             lifecycleCallbacks:
                 prePersist:   [ lifecycleFileUpload ]
                 preUpdate:    [ lifecycleFileUpload ]