db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Lustig" <m...@marclustig.com>
Subject problem retrieving foreign collection
Date Tue, 14 Jan 2003 20:19:08 GMT
Hi,

I have a strange behaviour here:
There is one Projekt related to my user.

user.getProjekts(); returns zero Projekts (WRONG)

When I replace the line with
user.getProjekts(new Criteria());
one Projekt is returned (correct).

I really can't follow what is going on here, as method getProjekts() simply
creates an empty Criteria and passes to getProjekts(Criteria c):

    public List getProjekts() throws TorqueException
    {
        if (collProjekts == null)
        {
            collProjekts = getProjekts(new Criteria(10));
        }
        return collProjekts;
    }

What's that?

Marc


Mime
View raw message