thank you for your reply,
OpenGeek,
Yes, I want to explain to you what is the situation:
I am using Modx evolution 1.0.2, and I am going to use xpdo 1.0 in order to prepare my knowledge for Revolution when it is Generally Available.
Then I want to manage my own database, and I am using the xpdo 1.0 documentation for Modx evolution. I have already defined my schema.
?xml version="1.0" encoding="UTF-8"?>
<model package="ecuadormycountryta" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" phpdoc-package="ecuadormycountryta" phpdoc-subpackage="model">
<object class="ecumctaSegment" table="tourismsegment" extends="xPDOSimpleObject">
<field key="segmentid" dbtype="integer" precision="20" phptype="integer" null="false" default="" index="index" />
<field key="segmentname" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<composite class="ecumctaTa" key="tatype" local="tatype" foreign="segmentid" cardinality="many" />
</object>
<object class="ecumctaTa" table="tourismattractivetype" extends="xPDOSimpleObject">
<field key="tatype" dbtype="integer" precision="100" phptype="integer" null="false" default="" index="index" />
<field key="taname" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<aggregate class="ecumctaSegment" local="segmentid" foreign="tatype" cardinality="one" />
<composite class="ecumctaEnlacetp" key="tatype" local="tatype" foreign="id" cardinality="many" />
</object>
<object class="ecumctaEnlacetp" table="enlacetipoproducto" extends="xPDOSimpleObject">
<field key="id" dbtype="integer" precision="1000" phptype="integer" null="false" default="" index="index" />
<field key="tatype" dbtype="integer" precision="100" phptype="integer" null="false" default="" index="index" />
<field key="tproduct" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="index" />
<aggregate class="ecumctaTa" local="id" foreign="tatype" cardinality="one" />
<aggregate class="ecumctaTproduct" local="id" foreign="tproduct" cardinality="one" />
</object>
<object class="ecumctaTproduct" table="tourismproduct" extends="xPDOSimpleObject">
<field key="tproduct" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="index" />
<field key="productname" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<field key="worldlocation" dbtype="varchar" precision="10" phptype="string" null="false" default="" index="" />
<field key="description" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<field key="contactid" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="" />
<composite class="ecumctaEnlacetp" key="tproduct" local="tproduct" foreign="id" cardinality="many" />
<composite class="ecumctaPcontact" key="tproduct" local="tproduct" foreign="contactid" cardinality="many" />
</object>
<object class="ecumctaPcontact" table="productcontact" extends="xPDOSimpleObject">
<field key="contactid" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="" />
<field key="contactname" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<field key="tproduct" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="index" />
<aggregate class="ecumctaTproduct" local="contactid" foreign="tproduct" cardinality="one" />
<composite class="ecumctaCdetalle" key="contactid" local="contactid" foreign="iddetalle" cardinality="many" />
</object>
<object class="ecumctaCdetalle" table="contactdetalle" extends="xPDOSimpleObject">
<field key="iddetalle" dbtype="integer" precision="1000" phptype="integer" null="false" default="" index="index" />
<field key="contactname" dbtype="varchar" precision="200" phptype="string" null="false" default="" index="" />
<field key="contactid" dbtype="integer" precision="10000" phptype="integer" null="false" default="" index="" />
<aggregate class="ecumctaPcontact" key="contactid" local="iddetalle" foreign="contactid" cardinality="one" />
</object>
</model>
and Now, I am working with the Generating the Model Code documentation, and I am seeing some xpdo information from Community Forums as
http://modxcms.com/forums/index.php/topic,12895.20.html to try to join all. Now, I have some questions.
From
http://modxcms.com/forums/index.php/topic,12895.20.html is used 095 schema, but I download from another community forum case the 096 schema. May i use 096 schema for MODx evolutiion 1.0.2?
Regard to "I wish to understand with one holistic example, the application of the relationships attibutes". I wish to find one integral example from schema phase until access to data phase in order to understand the complete sequence to manage data from xpdo. The situation is that from community forum there are pieces of information in different date; therefore, for example you tell me that key attribute theres is not used more and 095 schema or I do not if the example from
http://modxcms.com/forums/index.php/topic,12895.20.html will work. The questions is: May I obtain on sample y complete example to implement xpdo with evolution 1.0.2 ?
thanks