AnsweredAssumed Answered

Versionable with Child Association

Question asked by gonenc on Oct 20, 2006
Latest reply on Dec 5, 2006 by derek
Hi,

I have the following model;

<type name="reporting:reportOutputFile">
         <title>Report Output Type</title>
         <parent>cm:content</parent>
         <properties>
            <property name="reporting:outputCreationTime">
               <title>Date of Report Execution</title>
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
         <associations>
            <child-association name="reporting:outputImages">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>reporting:outputImage</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
            </child-association>
         </associations>
      </type>
     
      <type name="reporting:outputImage">
         <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

Outcomes