You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
I didn't find possibility to add multiple labels for a node. For example, I have a base node Stop then I have inherited nodes like BusStop, TramStop, TrolleybusStop. I need that stops for trolleybus have two labels (Stop:TrolleybusStop). As I understood it is impossible now to do this. Am I right?
I would like to have something like this
array of labels in annotation @OGM\Node(labels={"Stop", "TrolleybusStop"})
or like this
/** * @OGM\Node(label="Stop") */class Stop
{
}
/** * @OGM\Node(label="TrolleybusStop") */class TrolleybusStop extends Stop
{
// This entity should have both labels: Stop and TrolleybusStop.// Because first one should be inherited from the parent class.
}
The text was updated successfully, but these errors were encountered:
While I understand the need, the way I would like to be achieved would require a bit time and development so I decided to plan this feature post GA release and spend more time on stability and the UOW refactoring which are more critical for now.
You can still use the trick I posted. Note though that having inherited labels in Neo4j is a bit useless because you have the same metadata implicitly from the relationships.
I didn't find possibility to add multiple labels for a node. For example, I have a base node
Stop
then I have inherited nodes likeBusStop
,TramStop
,TrolleybusStop
. I need that stops for trolleybus have two labels (Stop:TrolleybusStop). As I understood it is impossible now to do this. Am I right?I would like to have something like this
array of labels in annotation
@OGM\Node(labels={"Stop", "TrolleybusStop"})
or like this
The text was updated successfully, but these errors were encountered: