lphuberdeau / Neo4j-PHP-OGM

A doctrine2 style library to access neo4j graphs
156 stars 45 forks source link

Non-directional Relationship #84

Open ShurikAg opened 9 years ago

ShurikAg commented 9 years ago

How can I create non-directional relationship using OGM?

Thanks,

lrezek commented 9 years ago

Unfortunately, Neo4J does not support non-directional relationships. From the docs:

As relationships are always directed, they can be viewed as outgoing or incoming relative to a node...

and

While relationships always have a direction, you can ignore the direction where it is not useful in your application.

You can read more about relationships here.