Mapping.Fixture.Xml.Timestampable.dcm.xml 983 B

1234567891011121314151617181920212223242526
  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\Timestampable" table="timestampables">
  5. <id name="id" type="integer" column="id">
  6. <generator strategy="AUTO"/>
  7. </id>
  8. <field name="created" type="datetime">
  9. <gedmo:timestampable on="create"/>
  10. </field>
  11. <field name="updated" type="datetime">
  12. <gedmo:timestampable on="update"/>
  13. </field>
  14. <field name="published" type="datetime" nullable="true">
  15. <gedmo:timestampable on="change" field="status.title" value="Published"/>
  16. </field>
  17. <many-to-one field="status" target-entity="Status">
  18. <join-column name="status_id" referenced-column-name="id"/>
  19. </many-to-one>
  20. </entity>
  21. </doctrine-mapping>