Symfony2 family tree script