I’m trying to attach template variables to a template in a build script with this code:
<?php
xPDOTransport::RELATED_OBJECTS => true,
xPDOTransport::RELATED_OBJECT_ATTRIBUTES => array (
'TemplateVarTemplates' => array(
xPDOTransport::PRESERVE_KEYS => true,
xPDOTransport::UPDATE_OBJECT => false,
xPDOTransport::UNIQUE_KEY => array('templateid','tmplvarid'),
),
I’m getting this error:
(ERROR) No foreign key definition for parentClass: modTemplate using relation alias: modTemplateVar
Looking at the schema file, I found this composite alias in the modTemplate class:
<composite alias="TemplateVarTemplates" class="modTemplateVarTemplate" local="id" foreign="tmplvarid" cardinality="many" owner="local" />
That’s the same composite alias that’s in the modTemplateVar class.
Shouldn’t that be:

If not, what am I missing here.