sgpatil / oriquent

Orientdb Eloquent driver for Laravel 5
MIT License
47 stars 15 forks source link

how to read and print @rid ? #18

Closed mshanak closed 8 years ago

mshanak commented 8 years ago

hello

i want to print @rid after inserting to database i have tried the following

$user["@rid"] // didn’t work
$user->@rid // didn’t work

is there a work around?

sgpatil commented 8 years ago

Hello @mshanak, echo $user["@rid"]; is working perfectly for me.

nambhd commented 8 years ago

I can not print out @rid too. Result is 0. I'm using laravel 5.2. Please help me check it.