Closed jr2wolfgang closed 7 years ago
I read in one of your closed issues on how to solve this. I was able to do this now:
public function has_article() { return $this->hasOne('App\Article', 'App\HasArticle'); }
But unfortunately, this is my new issue:
`java.lang.IllegalArgumentException: Argument '0' is not a RecordId in form of string. Format must be:
Hi @jr2wolfgang , I appreciate your exploration. Due to some time unavailability I am not able to look into the project for some weeks. But I will soon resolve the issues and will be back in work. Meanwhile you can fork the project and contribute to it by making PR.
Thanks @sgpatil for the reply. This technology is a little bit hard to dissect since there are just a few developers who are using it. Some who joined in this community are either testing the waters or just curious with graph DB. I hope you can help me out here. All I wanted to do is just to save the 2 related vertex. Nothing more, nothing less. :(
@jr2wolfgang , Just solved the issue. Can you please try it once again by reinstalling. I have updated the wiki page
@sgpatil I'll try this and will give you feedback. Thanks for the reply
I followed the instruction on saving a one to one related vertex found on this article: https://github.com/sgpatil/oriquent/wiki/Relationships
However, there are a lot of issues arising.
1) Class Has not found. see http://screencast.com/t/eXztkSCqja![2016-10-07_14-41-50](https://cloud.githubusercontent.com/assets/1019084/19181157/afc24856-8c9d-11e6-9fe7-6e7640ad7d8d.png)
I solve it by commenting line 174 of Sgpatil\Orientdb\Eloquent\Model.php
2) After solving number 1, another issue arise. Call to a member function getTable() on string. see http://screencast.com/t/Uaua1LjMYx![2016-10-07_14-45-20](https://cloud.githubusercontent.com/assets/1019084/19181170/c21e9dd8-8c9d-11e6-9fee-1bbd5c23048c.png)
I solve it by temporarily hard coded one of the parameters. On file Sgpatil\Orientdb\Eloquent\Relations\HasOneOrMany.php line 52 i hardcoded the code below: parent::__construct($query, $parent, 'hasArticle', $localKey);
3) I am stuck at the moment on saving relationship vertex. See http://screencast.com/t/aOcsDaca4 I hope someone can help me figure this out.