Hierarchy taxonomy terms for node path in drupal 7
The following solution works for me:

[node:field-yourfield:parents:join:/]/[node:title]


where yourfield stands for the name of your reference field.

Then you have to go into Configuration » Search and metadata » URL aliases Settings and under Punctuation change Slash to Do nothing, so it's not stripped from the alias.