jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

Create removeLabel method for Node class #167

Closed stevenmaguire closed 8 years ago

stevenmaguire commented 9 years ago

Similar to #166, occasionally you need to remove a single Label from a Node and it is clumsy to do so by first creating a new array.

I am proposing a new method on the Node class to allow removal of a single Label from a Node.

This method centralizes the creation of an array with the provided Label, passes it directly to the removeLabels method, and returns the list of all Node Labels.

public function removeLabel(Label $label)
{
        $labels = array($label);
        return $this->removeLabels($labels);
}
stevenmaguire commented 9 years ago

This build is failing and it appears to be related to https://github.com/php-memcached-dev/php-memcached/issues/126

A quick review of Travis CI indicates that this issue is also affecting PRs #166 #121 and #117