jadell / neo4jphp

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

Spaces in Labels are not supported #112

Closed selimachour closed 10 years ago

selimachour commented 10 years ago

Labels are supposed to handle the space character. You just need to back quote them.

Quick fix in Command/SetLabels.php

$labelSet = implode(':', array_map(function ($label) { if (!($label instanceof Label)) { throw new \InvalidArgumentException("Cannot set a non-label"); } return '' . $label->getName() . ''; // <<<<<<<<<<<<<< ADDING BACK QUOTES }, $labels));