I was already doing that before posting here, I had to be sure that I hadn't missed something.
Since there was no drop-in replacement for getConnectedEdges I replicated the method and dropped any graph functions from the aql. I guess I could use the EdgeHandler's edges() method but I really needed the filtering functionality of getConnectedEdges. Anyway, I got it working easily at the end. On Thursday, March 2, 2017 at 11:43:46 AM UTC+2, Wilfried Gösgens wrote: > > Hi, > please have a look at the changelog: > https://github.com/arangodb/arangodb-php/blob/devel/CHANGELOG.md#changes > > and the migration articles in: > > https://docs.arangodb.com/3.1/cookbook/AQL/ > > If that doesn't answer your question, please follow up. > > Cheers, > Willi > > On Wednesday, March 1, 2017 at 3:22:15 PM UTC+1, Georgios Kafataridis > wrote: >> >> I recently migrated to ArangoDB 3.1.12 and I am using the php arangodb >> library (https://github.com/arangodb/arangodb-php/) for some >> functionalities. >> I 2.8.0 when I needed to delete something (a page for example that was in >> a pagetree and had other pages below) I parsed all connected edges and >> deleted them one by one >> >> >> $graph = $graphHandler->getGraph('pageTree'); >> $vertexHandler = new ArangoVertexHandler($this->getArangodbConnection()); >> >> >> //get the vertex of the deleted page >> $vertex=$vertexHandler->getById('page', $id); >> >> >> //get all the children pages >> $edgeCursors=$graphHandler->getConnectedEdges($graph, $vertex->getHandle >> (), [ >> 'direction'=>'outbound', >> 'includeData'=>true, >> 'maxDepth'=>20, >> 'maxIterations'=>200, >> ]); >> >> How can I achieve the same result with as few as code changes possible ? >> Should getEdgeCollections() suffice? >> >> In case anyone wonders where the methods, are they are in >> "lib/triagens/ArangoDb/GraphHandler.php" >> > -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
