Ostico / PhpOrient

PhpOrient - Official Php driver based on the binary protocol of OrientDB.
Other
68 stars 37 forks source link

Create Edge using RecordCreate doesn't seem to be working. #49

Closed sptutusukanta closed 8 years ago

sptutusukanta commented 8 years ago

What I need, is to do transaction with edges. In my application I've used the RecordCreate, Record Delete and RecordUpdate Methods without using of command or query method.

So, I use the Transaction Statement and attach the Operations to it. But, at this point of time I need a way to create Edges and attach it to Transaction Statement.

I know I can go for Batch Query using the query method. But, my app is dynamic and I need to do Transaction at any point. If I choose to go for Batch Query, all the procedures of it, had to be changed.

Please Help!

Ostico commented 8 years ago

Hi @sptutusukanta ,

sotty, but the bynary protocol does not support a method for the edge creation, so you have to create manually the edges ( they are records in the E class or it's children ) and after you must create the connections between your Vertexes inside them.

sptutusukanta commented 8 years ago

Yes, I've tried to create edge using the recordCreate. You are right, the record is getting created as Edge but not linking it to the vertexes. Can you please help how to achieve that? Also, is it possible to attach that Operation to a Transaction Statement.

Thanks, for your support @Ostico.

sptutusukanta commented 8 years ago

Also, as you say "binary protocol does not support a method for the edge creation", is there any hope it will be added in near future and you update those in this module.

Ostico commented 8 years ago

Can i close this?