b3b06d3e7d
Until now the references to the `doctrine-mapping.xsd` consisted of different URLs. A grep of docs showed: * /Users/robo/dev/php/Doctrine/doctrine-mapping.xsd * http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd * http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd * https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd Now it is used http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd everywhere.
18 lines
742 B
XML
18 lines
742 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
|
|
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
|
|
|
|
<entity name="Entities\User" table="users">
|
|
<id name="id" type="integer">
|
|
<generator strategy="AUTO"/>
|
|
</id>
|
|
<field name="name" type="string" length="50"/>
|
|
<one-to-one field="address" target-entity="Address">
|
|
<join-column name="address_id" referenced-column-name="id"/>
|
|
</one-to-one>
|
|
</entity>
|
|
|
|
</doctrine-mapping>
|