[orm-devel] Bug or feature in relationships.py

Diedrich Vorberg orm-devel@mailman.tux4web.de
Tue, 18 Feb 2003 00:02:07 +0100


Hi Ross!

>What you describe below is not a 1:1 relationship, but a n:1 (many to
>one) - more than one row in the Document table shares the same Status
>id, therefore it is not one to one. This is a common pattern, often
>used exactly as you did, to map codes to larger descriptions. I'm not
>sure this is currently supported in ORM (but it should be ;-) since you
>can't really use one2many backwards, like you would in a generic SQL
>schema description. 

Of course!! You're right. I'll write it rightaway. One moment please...

Diedrich

-- 
           _..._                            Diedrich Vorberg
         .'     '.
        /  _   _  \                         http://www.tux4web.de
        | (o)_(o) |                         info@tux4web.de
         \(     ) /            .---.
         //'._.'\ \           /     \       Internet Dienstleistungen
        //   .   \ \          \.@-@./       und 'Consulting'.
       ||   .     \ \         /`\_/`\
       |\   :     / |        //  _  \\      Linux Rules!
       \ `) '   (`  /_      | \     )|_
     _)``".____,.'"` (_    /`\_`>  <_/ \
     )     )'--'(     (    \__/'---'\__/
      '---`      `---`