【发布时间】:2016-05-28 02:50:48
【问题描述】:
这是我的 omg 课程:
/**
* @OGM\Node(label="Personne")
*/
class Personne
{
/**
* @OGM\GraphId()
*/
protected $id;
/**
* @OGM\Property(type="string")
*/
protected $nom;
/**
* @OGM\Relationship(targetEntity="Personne", type="SUIT", direction="OUTGOING")
*/
protected $amis;
我使用这个代码:
$marc = $this->em->getRepository(Personne::class)->findOneBy('nom', 'marc');
print_r($marc->getAmis());
但它只返回 1 个关系,而不是全部,有什么问题?
【问题讨论】:
标签: php neo4j graphaware neo4j-php-ogm