I need to save the date of creation and update of all the nodes of my graph. I do not know how to use the lifecycle. Or is that I have to do the process manually?
Asked
Active
Viewed 69 times
0
-
You can do it manually in Cypher, you can create a trigger (see APOC), you can create an event handler, ... (and I don't know the possible way with neo4j-php-ogm) – logisima May 09 '18 at 07:12
-
Can you confirm you are using the PHP OGM, it is possible with event listeners, once you confirm I can create an answer with an example code – Christophe Willemsen May 09 '18 at 07:20
-
Yes, I'm using [neo4j-php-ogm](https://packagist.org/packages/graphaware/neo4j-php-ogm) – Jaime Roman May 09 '18 at 14:54
-
Cool, I already answered such question actually. Check here : https://stackoverflow.com/questions/42138492/graphaware-neo4j-php-ogm-event-listeners – Christophe Willemsen May 10 '18 at 06:37
-
@ChristopheWillemsen thank you very much for your help – Jaime Roman May 10 '18 at 14:03
-
Possible duplicate of [graphaware/neo4j-php-ogm event listeners](https://stackoverflow.com/questions/42138492/graphaware-neo4j-php-ogm-event-listeners) – Christophe Willemsen May 10 '18 at 21:55