[jifty-devel] Database interface

Thomas Themel thomas at themel.com
Tue Aug 15 15:50:51 EDT 2006


Hi,

I started playing with Jifty today and managed to hack a nice little
application - thanks for the great work!

However, I can't seem to figure out how to do joins on my data. I can't
get rid of the feeling that it should be possible since there's a join
method on the collection object, but I'm getting nowhere.

My model currently consists of an object called 'Question' that can have
a number of 'Claim' objects attached (the claim objects having a
refers_to column to the question). I was trying to code a simple
filter that would restrict a collection of Questions to 

- only questions that have a claim from the current user attached.
- only questions that have at least one claim attached.
- only questions no claims attached.

Could you shove me in the right direction, maybe?

ciao,
-- 
[*Thomas  Themel*] Stairway To Hell: The Well-Planned Destruction of Teens
[extended contact] Chapter 10:
[info provided in]    Is "Dungeons & Dragons" more than just a game?
[*message header*] <http://www.chick.com/reading/books/204/0204_10.asp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060815/c45a52aa/attachment.pgp


More information about the jifty-devel mailing list