【发布时间】:2014-02-09 02:40:24
【问题描述】:
我是 Neo4j Rest API 的初学者。我正在使用Everyman php 库来开发我的应用程序。我在创建带有标签的节点时遇到问题。
use Everyman\Neo4j\Client,
Everyman\Neo4j\Transport,
Everyman\Neo4j\Node,
Everyman\Neo4j\Relationship;
use Everyman\Neo4j\Cypher;
public function indexAction()
{
$client = new Client('localhost', 7474);
$user = new Node($client);
$user->setProperty('name', 'Rohan Chingula');
$user->save()->addLabels(array('Users'));
}
当我运行代码时,我得到了
/var/www/zf2-tutorial/vendor/everyman/neo4jphp/lib/Everyman/Neo4j/Command/SetLabels.php:43 信息: 不能设置非标签
【问题讨论】: