Skip to content
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

recordUpdate deletes edges? #20

Closed
andreyvk opened this issue Apr 30, 2015 · 4 comments
Closed

recordUpdate deletes edges? #20

andreyvk opened this issue Apr 30, 2015 · 4 comments
Labels

Comments

@andreyvk
Copy link

Hi,

Im using OrientDB 2.0.7 with PhpOrient 1.1.7. After I execute the following piece of code, my record loses all its edges:

Given:

orientdb {db=dbname}> select from #20:46
----+------+--------+----+--------+------------------------------------+---------+--------+-----------
#   |@RID  |@CLASS  |name|category|id                                  |isDeleted|out_has |out_belongs
----+------+--------+----+--------+------------------------------------+---------+--------+-----------
0   |#20:46|Test    |TEST|cat1    |b12557b4-097e-486f-ae29-e4da9a1a1065|false    |[size=2]|[size=1]
----+------+--------+----+--------+------------------------------------+---------+--------+-----------

Then we execute:

//$db is PhpOrient client instance 
//...
$rec = $db->recordLoad(new ID("#20:46"))[0];
$db->recordUpdate($rec);

After that in the console:

orientdb {db=midev}> select from #20:46
----+------+--------+----+--------+------------------------------------+---------+--------+-----------
#   |@RID  |@CLASS  |name|category|id                                  |isDeleted|out_has |out_belongs
----+------+--------+----+--------+------------------------------------+---------+--------+-----------
0   |#20:46|Test    |TEST|cat1    |b12557b4-097e-486f-ae29-e4da9a1a1065|false    |null    |null
----+------+--------+----+--------+------------------------------------+---------+--------+-----------

Is this an expected behavior?

@andreyvk andreyvk changed the title recordUpdate loses edges recordUpdate deletes edges? Apr 30, 2015
@Ostico Ostico added the bug label Apr 30, 2015
@Ostico
Copy link
Owner

Ostico commented Apr 30, 2015

I think not, but i have to investigate.

Thank you for reporting it.

@andreyvk
Copy link
Author

andreyvk commented May 1, 2015

Np. Hope nothing serious

@andreyvk
Copy link
Author

andreyvk commented May 5, 2015

Hi @Ostico,

Any news on the issue?

Ostico added a commit that referenced this issue May 10, 2015
Exception after command ALTER PROPERTY #7
Fatal error: Allowed memory... #25

Fixed
Ostico added a commit that referenced this issue May 10, 2015
@Ostico Ostico closed this as completed May 10, 2015
@andreyvk
Copy link
Author

Thanks @Ostico! Looks like it's all good here now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants