[Nitro] og: automatic deletion of records in M:N relations?

Riku Räisänen riku.raisanen at walkingwoods.com
Mon Aug 21 03:22:17 EDT 2006

Try to set the relation only to other of the classes (it's two-way 

Also, try this:

class Item
    # ...
    joins_many Tag
    # ...

class Tag
    # ...
    belongs_to Item
    # ...

so Tags get deleted if the Item is deleted, I don't know why you would 
want to remove the Items if a Tag is removed...

can't test these out, in a hurry.


More information about the Nitro-general mailing list