You are not logged in.
Pages: 1
TTourist = class(TSQLRecord)
private
fSchedule: TSchedule;
published
property schedule: TSchedule read fSchedule write fSchedule;
end;
TSchedule = class(TSQLRecord)
private
fDepartureDate: TDateTime;
fBus: TBus;
published
property bus : TBus read fBus write fBus;
end;
TBus = class(TSQLRecord)
private
fLicense: RawUTF8;
published
property license : RawUTF8 read fLicense write fLicense;
end;
When I call
tourist := TTourist.CreateAndFillPrepareJoined(Client,
'schedule.DepartureDate>=? and schedule.DepartureDate<=?',
[],
[dateS1,dateS2]);
the tourist record is loaded,which include schedule,bus bus is nil in schedule. how can I load all associate object, then I can access the sub object:
tourist.schedule.bus.license;
thank for any clue!
Offline
Thank ab! sharding or aggregate pattern, it is more complicated, I could expense some time to understand it.
Offline
Pages: 1