src/wcmf/lib/model/NodeUtil.php
public static function removeNonPkValues(Node $node) {
    $mapper = $node->getMapper();
    $pkValues = $mapper->getPkNames();
    $valueNames = $node->getValueNames();
    foreach($valueNames as $name) {
      if (!in_array($name, $pkValues)) {
        $node->removeValue($name);
      }
    }
  }
public static function removeNonPkValues(Node $node) {
    $mapper = $node->getMapper();
    $pkValues = $mapper->getPkNames();
    $valueNames = $node->getValueNames();
    foreach($valueNames as $name) {
      if (!in_array($name, $pkValues)) {
        $node->removeValue($name);
      }
    }
  }
public static function removeNonPkValues ( Node $ node ) { $ mapper = $ node -> getMapper ( ) ; $ pkValues = $ mapper -> getPkNames ( ) ; $ valueNames = $ node -> getValueNames ( ) ; foreach ( $ valueNames as $ name ) { if ( ! in_array ( $ name , $ pkValues ) ) { $ node -> removeValue ( $ name ) ; } } }
Remove all values from a Node that are not a primary key value.
@param $node The Node instance
Remove all values from a Node that are not a primary key value .