<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://forum.orm-designer.com/index.php">
	<title>ORM Designer RDF feed</title>
	<link>http://forum.orm-designer.com/index.php</link>
	<description>ORM Designer RDF feed</description>
	<items>
		<rdf:Seq>
			<rdf:li rdf:resource="http://forum.orm-designer.com/index.php?t=rview&amp;goto=571&amp;th=188#msg_571" />
			<rdf:li rdf:resource="http://forum.orm-designer.com/index.php?t=rview&amp;goto=570&amp;th=188#msg_570" />
			<rdf:li rdf:resource="http://forum.orm-designer.com/index.php?t=rview&amp;goto=569&amp;th=188#msg_569" />
		</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://forum.orm-designer.com/index.php?t=rview&amp;goto=571&amp;th=188#msg_571">
	<title>Re: Inheritance between modules</title>
	<link>http://forum.orm-designer.com/index.php?t=rview&amp;goto=571&amp;th=188#msg_571</link>
	<description><![CDATA[I just emailed you a sample file. Thanks for your help.]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Jeremiah</dc:creator>
	<dc:date>2012-05-17T22:05:51-00:00</dc:date>
</item>

<item rdf:about="http://forum.orm-designer.com/index.php?t=rview&amp;goto=570&amp;th=188#msg_570">
	<title>Re: Inheritance between modules</title>
	<link>http://forum.orm-designer.com/index.php?t=rview&amp;goto=570&amp;th=188#msg_570</link>
	<description><![CDATA[Hello Jeremiah,<br />
<br />
ORM Designer requires primary key in every entity including inherited ones (because of limitation in internal model storage).<br />
<br />
But when a final model with inheritance is exported, the result schema should work correctly. <br />
<br />
Maybe this have something to do with missing namespaces you referred. Could you please send me (<a href="mailto:support&#64;orm-designer.com" target="_blank">support&#64;orm-designer.com</a>) any small sample project, where I can simulate this issue?<br />
<br />
Thank you<br />
Ludek]]></description>
	<dc:subject></dc:subject>
	<dc:creator>ludek.vodicka@inventic.cz</dc:creator>
	<dc:date>2012-05-17T15:09:45-00:00</dc:date>
</item>

<item rdf:about="http://forum.orm-designer.com/index.php?t=rview&amp;goto=569&amp;th=188#msg_569">
	<title>Inheritance between modules</title>
	<link>http://forum.orm-designer.com/index.php?t=rview&amp;goto=569&amp;th=188#msg_569</link>
	<description><![CDATA[Hello,<br />
<br />
We've used STI (Single Table Inheritance) to define an Attachment entity, which a series of other entities inherit. Here is the Attachment module, showing one of the entities that inherits the Attachment entity.<br />
<br />
<img src="index.php?t=getfile&amp;id=112&amp;private=0" border="0" alt="index.php?t=getfile&amp;id=112&amp;private=0" /><br />
<br />
The full qualified entity names  in this example are:<br />
<br />
\Attachment\Entity\Attachment<br />
\Application\Entity\WorkinstructionDocumentVersion<br />
<br />
<br />
This is the xml that gets generated for these two entities.<br />
<br />
In the subEntity, I have to define a primary key or ORMD won't let me create relationships (for example Many-To-Many between WorkinstructionDocumentVersion and something else (in my case TestSetup) that needs to reference it. However, once I try to use compile the entities in doctrine, it complains the id is redundant (since it inherits the Attachment Id)<br />
<br />
<div class="pre"><pre>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;doctrine-mapping xmlns=&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping&quot; xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; schemaLocation=&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd&quot;&gt;
  &lt;entity name=&quot;Application\Entity\WorkinstructionDocumentVersion&quot;&gt;
    &lt;!-- manual edit: id is inherited from \Attachment\Entity\Attachment
    &lt;id name=&quot;id&quot; type=&quot;integer&quot;&gt;
      &lt;generator strategy=&quot;AUTO&quot;/&gt;
    &lt;/id&gt;
     --&gt;
    &lt;many-to-one field=&quot;workinstructionDocument&quot; target-entity=&quot;Application\Entity\WorkinstructionDocument&quot; inversed-by=&quot;versions&quot;&gt;
      &lt;join-columns&gt;
        &lt;join-column name=&quot;workinstruction_document_id&quot; referenced-column-name=&quot;id&quot;/&gt;
      &lt;/join-columns&gt;
    &lt;/many-to-one&gt;
    &lt;many-to-many field=&quot;waterfallTestSetups&quot; target-entity=&quot;Application\Entity\WaterfallTestSetup&quot; inversed-by=&quot;workinstructionDocumentVersions&quot;&gt;
      &lt;join-table name=&quot;waterfall_test_setups_workinstruction_document_versions_xref&quot;&gt;
        &lt;join-columns&gt;
          &lt;join-column name=&quot;workinstruction_document_version_id&quot; referenced-column-name=&quot;id&quot; nullable=&quot;false&quot;/&gt;
        &lt;/join-columns&gt;
        &lt;inverse-join-columns&gt;
          &lt;join-column name=&quot;waterfall_test_setup_id&quot; referenced-column-name=&quot;id&quot; nullable=&quot;false&quot;/&gt;
        &lt;/inverse-join-columns&gt;
      &lt;/join-table&gt;
    &lt;/many-to-many&gt;
  &lt;/entity&gt;
&lt;/doctrine-mapping&gt;

</pre></div><br />
<br />
<br />
This maybe has something to do with it? When I generate the xml from ORMD, the discriminator mapping class references don't include the fully qualified class names, so Doctrine errors, as it's looking in the \Attachment namespace. If I add the fqn Doctrine is happy.<br />
<br />
<div class="pre"><pre>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;doctrine-mapping xmlns=&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping&quot; xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; schemaLocation=&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd&quot;&gt;
  &lt;entity name=&quot;Attachment\Entity\Attachment&quot; inheritance-type=&quot;SINGLE_TABLE&quot; table=&quot;attachments&quot;&gt;
    &lt;id name=&quot;id&quot; type=&quot;integer&quot;&gt;
      &lt;generator strategy=&quot;AUTO&quot;/&gt;
    &lt;/id&gt;
    &lt;field name=&quot;filename&quot; type=&quot;string&quot; nullable=&quot;true&quot;/&gt;
    &lt;field name=&quot;version&quot; type=&quot;integer&quot; nullable=&quot;true&quot;/&gt;
    &lt;field name=&quot;path&quot; type=&quot;string&quot; nullable=&quot;true&quot;/&gt;
    &lt;field name=&quot;md5&quot; type=&quot;text&quot; nullable=&quot;true&quot;/&gt;
    &lt;field name=&quot;description&quot; type=&quot;text&quot; nullable=&quot;true&quot;/&gt;
    &lt;field name=&quot;uploadedAt&quot; type=&quot;datetime&quot; nullable=&quot;true&quot; column=&quot;uploaded_at&quot;/&gt;
    &lt;discriminator-column name=&quot;type_discriminator&quot; field-name=&quot;typeDiscriminator&quot; length=&quot;255&quot; type=&quot;text&quot;/&gt;
    &lt;discriminator-map&gt;
       &lt;!-- manual edit: have to use Fq class names here --&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\WaterfallAttachment&quot; value=&quot;Waterfall&quot;/&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\SampleAttachment&quot; value=&quot;Sample&quot;/&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\RequestAttachment&quot; value=&quot;Request&quot;/&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\WorkinstructionDocumentVersion&quot; value=&quot;Workinstruction&quot;/&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\SpecificationDocumentVersion&quot;/&gt;
      &lt;discriminator-mapping class=&quot;Application\Entity\ObservationAttachment&quot; value=&quot;Observation&quot;/&gt;
    &lt;/discriminator-map&gt;
  &lt;/entity&gt;
&lt;/doctrine-mapping&gt;

</pre></div><br />
<br />
<br />
Am I doing something wrong here, or is this an ORMD issue with inheritance across namespaces?]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Jeremiah</dc:creator>
	<dc:date>2012-05-15T21:28:16-00:00</dc:date>
</item>
</rdf:RDF>
