Binary tree behavior for cakephp