Looking at both the dbo tutorial and the reference, it looks like  
session.find<User>() might return either a Wt::Dbo::ptr<User> or a  
Wt:Dbo::collection< Wt::Dbo::ptr<User> > but I can't quite tell how to  
specify which.  I've got a case where I want and expect it to return  
all rows from the mapped table, but based on the compile time error  
messages, it looks like it's returning a single ptr.  The reference to  
find under collection (as opposed to under session) seems to imply that  
this is only if hasMany() has been called to define a one (or many) to  
many relationship.  If this is the case, what would be the right way to  
get all rows of a single table not in such a relationship?

Thanks for the great support.

Jack
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to