You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen that you have similar issue (or so I think), but i've decided to create a new one.
I was just going to ask if there's any support for complex attributes in OrientDBRecord or at least in text queries? Is there a way to do that with OrientDB-PHP now?
For example,
$record = new OrientDBRecord();
$record->data->name = 'Andrey';
$record->data->complex_name = new stdCLass();
$record->data->complex_name->first = 'Andrey';
$record->data->complex_name->last = 'Kuprianov';
$record->data->age = 30;
$recordPos = $db->recordCreate(1, $record);
The text was updated successfully, but these errors were encountered:
Well, right now everything except scalar and library's classes throws an exception on toString() method.
Code can be changed, so prior to exception library will check if some complex value has __toString() method and call it. This will be a bit slower, but bulletproof.
StdClass, however, lacks toString method, so example above will not work even with this fix.
Hi Anton,
I've seen that you have similar issue (or so I think), but i've decided to create a new one.
I was just going to ask if there's any support for complex attributes in OrientDBRecord or at least in text queries? Is there a way to do that with OrientDB-PHP now?
For example,
$record = new OrientDBRecord();
$record->data->name = 'Andrey';
$record->data->complex_name = new stdCLass();
$record->data->complex_name->first = 'Andrey';
$record->data->complex_name->last = 'Kuprianov';
$record->data->age = 30;
$recordPos = $db->recordCreate(1, $record);
The text was updated successfully, but these errors were encountered: