AnsweredAssumed Answered

Associations error

Question asked by sbudrez on Dec 21, 2009
I've created a custom content type with some associations (by creating a customModel.xml file in the extension directory):


          …
          <associations>
            <association name="custom:PRImage">
               <title>Press Release Image</title>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
            <association name="custom:PRFiles">
               <title>Press Release Files</title>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
          </associations> 
          …

When i try to associate more than one file with the "Press Release Files" association i get this error:

A system error happened during the operation: 11210013 Found 1 integrity violations: The association source multiplicity has been violated: Target Node: workspace://SpacesStore/f34a1b1d-3498-4d91-a6fb-77e189f0d0b8 Association: Association[ class=ClassDef[name={custom.model}pressrelease], name={custom.model}PRFiles, target class={http://www.alfresco.org/model/content/1.0}content, source role=null, target role=null] Required source Multiplicity: 1..1 Actual source Multiplicity: 2

Shouldn't it be all ok since "<many>true</many>"??

Outcomes