Adds tree behaviors to your doctrine entities.