Entities.Address.dcm.xml 665B

123456789101112131415
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
  5. http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
  6. <entity name="Entities\Address" table="addresses">
  7. <id name="id" type="integer">
  8. <generator strategy="AUTO"/>
  9. </id>
  10. <field name="street" type="string" length="255"/>
  11. <one-to-one field="user" target-entity="User" mapped-by="address"/>
  12. </entity>
  13. </doctrine-mapping>