Various Tree methods implemenation for Symfony2 integration