lib/Psc/CMS/Controller/NavigationController.php
public function createNewNode(stdClass $jsonNode) {
    $nodeClass = $this->container->getRoleFQN('NavigationNode');
    $node = new $nodeClass((array) $jsonNode->title);
    $node->generateSlugs();
    $defaultSlug = current($node->getI18nSlug());  // not matter what current language is, this is the default language

    $page = $this->createNewPage($defaultSlug);
    $this->dc->getEntityManager()->persist($page);

    $node->setPage($page);

    return $node;
  }
public function createNewNode(stdClass $jsonNode) {
    $nodeClass = $this->container->getRoleFQN('NavigationNode');
    $node = new $nodeClass((array) $jsonNode->title);
    $node->generateSlugs();
    $defaultSlug = current($node->getI18nSlug());  // not matter what current language is, this is the default language

    $page = $this->createNewPage($defaultSlug);
    $this->dc->getEntityManager()->persist($page);

    $node->setPage($page);

    return $node;
  }
public function createNewNode ( stdClass $ jsonNode ) { $ nodeClass = $ this -> container -> getRoleFQN ( 'NavigationNode' ) ; $ node = new $ nodeClass ( ( array ) $ jsonNode -> title ) ; $ node -> generateSlugs ( ) ; $ defaultSlug = current ( $ node -> getI18nSlug ( ) ) ; // not matter what current language is, this is the default language $ page = $ this -> createNewPage ( $ defaultSlug ) ; $ this -> dc -> getEntityManager ( ) -> persist ( $ page ) ; $ node -> setPage ( $ page ) ; return $ node ; }
Just create one, the attributes will be set automatically

@return Webforge\CMS\Navigation\Node
Just create one the attributes will be set automatically