Auto assign organic group to a content type
I just ran into this problem with hooks. It's being saved but you won't see this in node_insert due to the caching system of nodes in Drupal. Add this before your dpm code and you'll see the results immediately.

entity_get_controller('node')-&gt;resetCache(array($node-&gt;nid));


I'm so happy I can stop someone else from banging their head on the wall like I did. Ha.