Hi,
I've managed to hack the code for check_primary_key. It now allows for a
option
[automatic|dependent]. It'll automatically insert into the parent table
if the primary key doesn't exists in the parent table and if the option
is "automatic". It works the same as before if the option is
"dependent".
If anybody is interested I might polish the code a bit and post to the
list.
Thanks,
Anand.