sgpatil / oriquent

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

Array to String conversion when querying relationships #20

Closed kcalliauw closed 7 years ago

kcalliauw commented 8 years ago

Hello!

I have a vertex class (table) called Person and every person has a father. I have edges pointing to the other person as their father. I can create people and create the relationships, and those look OK in the database. However, when I query the relationship, I always get an "Array to String conversion" error.

Here's how I'm trying to query the relationship:

$person = Person::find('12:16');
var_dump($person->father()->get());

Am I doing something wrong?