I have this tables (SQL): CREATE TABLE driver ( id int(11) NOT NULL AUTO_INCREMENT, ... CREATE TABLE device ( id varchar(255) NOT NULL, ... CREATE TABLE driver_has_device ( driver int(11) NOT NULL, device varchar(255) NOT NULL, PRIMARY KEY (driver, device)) ENGINE=InnoDB CHARACTER SET UTF8;
And I trying to map the entities in XML format. I did the XML for Device and looks like this: <?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" 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="Device\DeviceBundle\Entity\Device" table="device"> <id name="id" type="integer" column="id"> <generator strategy="AUTO" /> </id> <field name="description" column="description" type="string" length="255" unique="true" nullable="false" /> <field name="imei" column="imei" type="string" length="17" unique="true" nullable="false" /> <field name="created" type="datetime"> <gedmo:timestampable on="create"/> </field> <field name="modified" type="datetime"> <gedmo:timestampable on="update"/> </field> <field name="deletedAt" type="datetime" nullable="true" /> <gedmo:soft-deleteable field-name="deletedAt" time-aware="false" /> </entity> </doctrine-mapping> But now I don't know how to get the relation or set on XML, can any give me some example or advice? -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
