One to many join & node reference problem

Events happening in the community are now at Drupal community events on www.drupal.org.
WuffWuff's picture

I'm new to CCK and have come across a problem when tryting to create a simple one to many relationship between 2 nodes.

I am able to create the nodes, one node is called company and the other programs. One company will have many programs. I have used the views module and can get some data out but it seems that something is going wrong in the table used to join the nodes together.

I created the Company node and created a field called "parent_id" as the field a node reference. I am a little confused as to how this field is populated as I set it up as a " "Autocomplete Text Field". It appears that even if I type something in it is not being populated in the table "content_field_parent_id". Checked with phpmyadmin and it was populated with 0. I don't really want to type anthing into this field, I just want it to auto incriment.

I'm not really understanding how to get the node reference to auto increment and also why the code is not populating the "field_parent_id_nid" filed in the table CCK uses to join nodes, in my case "content_field_parent_id"

(I hope this is the correct place to post - How are these groups different to the ones on Drupal.org?)

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: