Ostico / PhpOrient

PhpOrient - Official Php driver based on the binary protocol of OrientDB.
Other
68 stars 37 forks source link

Allow the results of basic queries to be fetched in child classes of Record #42

Closed pjmazenot closed 8 years ago

pjmazenot commented 9 years ago

Usage:

    $this->client->setFetchClass('PhpOrient\TestClassRecord');
    $res = $this->client->execute( 'recordLoad', ['rid' => new ID( "#9:5" )] );

Or

    $res = $this->client->setFetchClass('PhpOrient\TestClassRecord')->execute( 'recordLoad', ['rid' => new ID( "#9:5" )] );

Possible improvements:

I also added a quickfix for the fatal PHP error in the serialization test (commit 47e969d).