lphuberdeau / Neo4j-PHP-OGM

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

Update Entity Property #91

Closed alexstan89 closed 9 years ago

alexstan89 commented 9 years ago

Hi, I can't seem to update a Property on an entity. I have defined a setter like this:

/* * @OGM\Property * @OGM\Index * @var string / protected $field;

public function setField($field) { $this->field = $field; return $this; }

on $o->setField('x'); $em->persist($o); $em->flush();

Nothing happens. Am I doing something wrong ?

lphuberdeau commented 9 years ago

Seems like it should work. Perhaps a more complete sample would help?

alexstan89 commented 9 years ago

What I was trying to say is that the node's property isn't updated after flush in the Neo4j database.

lphuberdeau commented 9 years ago

I don't have enough to work with to help. There are quite a few tests making sure the basic functionality works. Please post enough code to reproduce the issue.

Even better if you can write a failing test that demonstrates the issue.