kleinerdrache wrote:
> Hi there,
> 
> I'm trying to create a module for handling social cases.  There I want
> to have parties and employees, and more than one, so I can deside who
> is involved in the case.
> 
> But I don't understand how i should do this, many2many many2one or
> one2many.
> 
> Please help me a bit, the documentation doesn't say so much about what
> to use where...
> 
> thanks,
> Martin
> > 

Actually many2one and one2many are the same relation, considered in one 
direction or the other (a m2o creates a fk in the current table, o2m 
just tells which fk-table couple must be considered). So the remaining 
question depends on the situation you want to model: if a party can be 
linked to more than one employee, it's a m2m, else it's a m2o (many 
party to one employee).

-- 
Bertrand Chenal

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 474 207 906
Email: [email protected]
Website: http://www.b2ck.com/

--~--~---------~--~----~------------~-------~--~----~
[email protected] mailing list
-~----------~----~----~----~------~----~------~--~---

Reply via email to