12345678910111213141516171819202122232425262728293031323334353637 |
- <?xml version="1.0" encoding="UTF-8"?>
- <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
- xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">
- <entity name="Mapping\Fixture\Xml\Uploadable" table="uploadables">
- <id name="id" type="integer" column="id">
- <generator strategy="AUTO"/>
- </id>
- <field name="mimeType" column="mime" type="string">
- <gedmo:uploadable-file-mime-type />
- </field>
- <field name="size" column="size" type="decimal">
- <gedmo:uploadable-file-size />
- </field>
- <field name="path" column="path" type="string">
- <gedmo:uploadable-file-path />
- </field>
- <gedmo:uploadable
- allow-overwrite="true"
- append-number="true"
- path="/my/path"
- path-method="getPath"
- callback="callbackMethod"
- filename-generator="SHA1"
- max-size="1500"
- allowed-types="text/plain,text/css"
- disallowed-types="video/jpeg,text/html" />
- </entity>
- </doctrine-mapping>
|