Generate php code able to generate a tree for the doctrine tree extension  https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/tree.md#to-save-some-categories-and-generate-tree