Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead.

$treeBuilder = new TreeBuilder('bundle_id');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('bundle_id');
 
PREVIOUS NEXT
Tagged: #creating #root #node #migrate #constructor #signature
ADD COMMENT
Topic
Name
7+4 =