I don't want to iterate all agencies because I want the result to be as
Query not dbo objects


On Fri, Feb 28, 2014 at 10:01 PM, Nagaev Boris <bnag...@gmail.com> wrote:

> So, you want to iterate all agencies assigned to this branch?
>
> Your code should work. Assign this expression to
> dbo::collection<dbo::ptr<Agency> > and iterate this collection using
> boost-foreach or c++11-for, as I wrote above.
>
>
> Regads,
> Boris Nagaev
>
>
> On Fri, Feb 28, 2014 at 11:45 PM, Muhammad Nasser Al-Noimi
> <mnno...@gmail.com> wrote:
> > Hi,
> >
> > I think this is very easy question, but actually I couldn't get the
> result I
> > want.
> > I have a dbo object and I want to query all the details, I used the
> > following but I got no data:
> >
> > session()->find<Agency>().where("branch_id = ?").bind(branch_->id));
> >
> > Branch and Agency are related as one-to-many relation 1 branch has n
> Agency.
> >
> >
> > On Fri, Feb 28, 2014 at 8:41 PM, Muhammad Nasser Al-Noimi
> > <mnno...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> I think this is very easy question, but actually I couldn't get the
> result
> >> I want.
> >> I have a dbo object and I want to query all the details using
> >>
> >
> >
> >
> ------------------------------------------------------------------------------
> > Flow-based real-time traffic analytics software. Cisco certified tool.
> > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> > Customize your own dashboards, set traffic alerts and generate reports.
> > Network behavioral analysis & security monitoring. All-in-one tool.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> > _______________________________________________
> > witty-interest mailing list
> > witty-interest@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/witty-interest
> >
>
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to