public function create()
    {
        /**
         * @var Node $node
         */
        $classNamespace = $this->getEntityNamespace();
        $node = new $classNamespace();
        $node
            ->setSubnodes(new ArrayCollection())
            ->setPriority(0)
            ->setActiveUrls([])
            ->setEnabled(true);

        return $node;
    }
public function create()
    {
        /**
         * @var Node $node
         */
        $classNamespace = $this->getEntityNamespace();
        $node = new $classNamespace();
        $node
            ->setSubnodes(new ArrayCollection())
            ->setPriority(0)
            ->setActiveUrls([])
            ->setEnabled(true);

        return $node;
    }
public function create ( ) { /**
         * @var Node $node
         */ $ classNamespace = $ this -> getEntityNamespace ( ) ; $ node = new $ classNamespace ( ) ; $ node -> setSubnodes ( new ArrayCollection ( ) ) -> setPriority ( 0 ) -> setActiveUrls ( [ ] ) -> setEnabled ( true ) ; return $ node ; }
Creates an instance of Node entity.

@return Node Empty entity
Creates an instance of Node entity .