File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ want to make uploadable.
48
48
49
49
We already created an abstract representation of the filesystem (the mapping),
50
50
so we just have to tell the bundle which entity should use which mapping. In
51
- this guide we'll use annotations to achieve this, but you can also use
51
+ this guide we'll use attributes to achieve this, but you can also use
52
52
[YAML](mapping/yaml.md) or [XML](mapping/xml.md).
53
53
54
- First, annotate your class with the ` Uploadable` annotation . This is really like
54
+ First, annotate your class with the ` Uploadable` attribute . This is really like
55
55
a flag indicating that the entity contains uploadable fields.
56
56
57
57
Next, you have to create the two fields needed for the bundle to work :
@@ -62,7 +62,7 @@ Next, you have to create the two fields needed for the bundle to work:
62
62
object after the form is submitted. This should *not* be persisted to the
63
63
database, but you *do* need to annotate it.
64
64
65
- The `UploadableField` annotation has a few options. They are as follows :
65
+ The `UploadableField` attribute has a few options. They are as follows :
66
66
67
67
* `mapping`: required, the mapping name specified in the bundle configuration to use;
68
68
* `fileNameProperty`: required, the property that will contain the name of the uploaded file;
You can’t perform that action at this time.
0 commit comments