Mapping.Fixture.Xml.Uploadable.dcm.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
  3. xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">
  4. <entity name="Mapping\Fixture\Xml\Uploadable" table="uploadables">
  5. <id name="id" type="integer" column="id">
  6. <generator strategy="AUTO"/>
  7. </id>
  8. <field name="mimeType" column="mime" type="string">
  9. <gedmo:uploadable-file-mime-type />
  10. </field>
  11. <field name="size" column="size" type="decimal">
  12. <gedmo:uploadable-file-size />
  13. </field>
  14. <field name="path" column="path" type="string">
  15. <gedmo:uploadable-file-path />
  16. </field>
  17. <gedmo:uploadable
  18. allow-overwrite="true"
  19. append-number="true"
  20. path="/my/path"
  21. path-method="getPath"
  22. callback="callbackMethod"
  23. filename-generator="SHA1"
  24. max-size="1500"
  25. allowed-types="text/plain,text/css"
  26. disallowed-types="video/jpeg,text/html" />
  27. </entity>
  28. </doctrine-mapping>