cancel
Showing results for 
Search instead for 
Did you mean: 

Versionable with Child Association

gonenc
Champ in-the-making
Champ in-the-making
Hi,

I have the following model;

<type name="reporting:reportOutputFile">
         <title>Report Output Type</title>
         <parent>cm:content</parent>
         <properties>
            <property name="reportingSmiley SurprisedutputCreationTime">
               <title>Date of Report Execution</title>
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
         <associations>
            <child-association name="reportingSmiley SurprisedutputImages">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>reportingSmiley SurprisedutputImage</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
            </child-association>
         </associations>
      </type>
     
      <type name="reportingSmiley SurprisedutputImage">
         <title>Output Image</title>
         <parent>cm:content</parent>
      </type>

Basically what I am trying to do is store some images for an report output file as a child association. I am able to store the child without any problems. However, when I try to checkout the outputfile it gives an integrity, more than one parents error. It seems that it is trying to link the child association also with the new version. What I want to do is simply store these child associations for each version (it is different for each version). I would appreciate any help.

Gonenc Ercan
2 REPLIES 2

manuelgentile
Champ in-the-making
Champ in-the-making
Same problem!

Any idea?

Thanks

derek
Star Contributor
Star Contributor
Hi,

Could you post the integrity errors as well, please?  Also, if you are doing the work using code, could you post the relevant code snippets as well?

Regards