Skip to content

Feature/issue 243 #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2018
Merged

Feature/issue 243 #251

merged 2 commits into from
Aug 16, 2018

Conversation

jsteemann
Copy link
Contributor

No description provided.

@jsteemann jsteemann mentioned this pull request Aug 6, 2018
$edge->someAttribute = 'someValue';
$edge->setFrom('test/v1');
$edge->setTo('test/v2');
$documentId = $edgeHandler->saveEdge($collection->getName(), 'test/v1', 'test/v2', $edge);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However param 2 and 3 looks unnecessary since you can set it from edge.
How about remove it and change it like this

saveEdge($collectionName, Edge $edge)

@jsteemann
Copy link
Contributor Author

@lshaf : I don't think your suggestion will work. I just tried it, but saveEdge requires at least 4 parameters:

1) ArangoDBClient\CustomEdgeClassTest::testGetCustomEdgeWithHandler
ArgumentCountError: Too few arguments to function ArangoDBClient\EdgeHandler::saveEdge(), 2 passed in ./tests/CustomEdgeClassTest.php on line 67 and at least 4 expected

@lshaf
Copy link

lshaf commented Aug 6, 2018

Sorry, I just raised different issue.
I have no complain on this commit. All is good.

@jsteemann jsteemann merged commit 69d557f into devel Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants