I'm trying to create a new taxonomy term. I'm creating the entity using entity_create('taxonomy_term', array('vocabulary_machine_name'=>'). Then I create the wrapper for it. What i want to do then is set these:
$wrapper->vid =
$wrapper->format = 'plain_text'

However I get an error, format or vid are not a property. I know from an other issue posted on 'creating taxonomy term', I should give the vid on creation time. But I would expect that when I set the vocabulary property on the wrapper, the vid is stored correctly?
$wrapper->vocabulary = $vocabulary (= taxonomy_load_vocabulary_by_name)

What about the format column from the taxonomy_term table, why isn't this available?

thanks