cancel
Showing results for 
Search instead for 
Did you mean: 

need OR in child association

morpheus
Champ in-the-making
Champ in-the-making
Hi,
I´m very new to this community and while configurating my content model, i don´t find an opportunity defining an OR an cm:constains
i tried this, but getting Errors, while testing it ,
and i can´t find the schema, in which the association type is defined

   <child-association name="cm:contains">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
                           </source>
               <target>
                  <class>cm:cmobject</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
                                    <target>
                  <class>melearn:category</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
      </child-association>
   

so would be very thankfully…. Smiley Very Happy

->seems to be a very talkative community here …
1 REPLY 1

morpheus
Champ in-the-making
Champ in-the-making
works now defining this :

         <associations>
            <child-association name="melearn:subObjects">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:cmobject</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
            </child-association>
            <child-association name="melearn:subCategories">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>melearn:category</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
            </child-association>
         </associations>