This one time, at band camp, Nikolov. Dragomir said:

ND>     I have two classes having many-to-many relationship.
ND>     public class A
ND>     {
ND>             ...
ND>     }
ND>
ND>     public class B
ND>     {
ND>             public Collection getAs()
ND>             {
ND>             ..
ND>             }
ND>     }
ND>
ND>     I am trying get all objects of type B which are dependant of certain object of 
type A ( have this object in their collection of A objects)
ND>     Any idea how the query should look like?

Dragomir,

If the B object is dependent upon the A object, B objects cannot
be fetched independently from A objects. You must first fetch A
objects and navigate to the Collection of B objects. See the following
section of the docs for more information:

    http://www.castor.org/castor-one.html#Dependent-and-related-relationships

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to