This is my omg class :
/**
* @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;
And I use this code :
$marc = $this->em->getRepository(Personne::class)->findOneBy('nom', 'marc');
print_r($marc->getAmis());
But it returns only 1 relationship, not all, what is wrong ?