pxlplnt/androrm — pull request #10 by gak (2012-05-16 11:53:42+00:00)
Title: Potential fix for #8, Exception when inserting NULL in a ForeignKeyField

For #8, I believe what was happening was that `putData` was using the integer `0` which didn't exist in the database, hence the constraint error. This is fixed by using null when `mReference` is `0`, which is presumably when there is no foreign key set.

I haven't tested it, but when a foreign key reference is removed, this should correctly invalidate it too.