Storing LinkedSet in OrientDB class throws Impossible to serialize invalid link #-1:-1

I am trying to insert a record in a vertex in OrientDB using python client. the code is as follows print(recommendationCluster[‘recommendation’]) for recommendation in recommendationCluster[‘recommendation’]: item = menuitems.loadMenuItemWithId(str(recommendation),orientclient) items.append(item._rid) print(“Creating cluster of “, items) cluster[‘recommendeditems’] = items dbData = {} dbData[‘@RecommendationCluster’]=cluster print(“Storing recommendation cluster “, dbData) newCluster = orientclient.record_create(-1, dbData) In the console i see…

Details

Really force http to https in Laravel

I have this Laravel App which I’m deplying to Heroku. I have followed all of the steps until I encountered a problem relating some assets (asset(‘css/app.css’), for example) refering to http urls, instead of https urls. I solved that by adding if(config(‘app.env’)===’production’){ \URL::forceScheme(‘https’); } in the boot menu of my AppServiceProvider.php file, and it worked.…

Details

c# delete multiple data from database at once

I’m trying to create loop that will delete data from my database at the same times. here’s my code. using (MySqlConnection mysqlCon = new MySqlConnection(connectionString)) { foreach (DataGridViewRow dr in bunifuCustomDataGrid1.Rows) { int inventid = Convert.ToInt32(bunifuCustomDataGrid1.Rows[bunifuCustomDataGrid1.CurrentRow.Index].Cells[0].Value); mysqlCon.Open(); MySqlCommand cmd = new MySqlCommand(“DELETE FROM bookdb.book WHERE (BookID = @uid)”, mysqlCon); cmd.Parameters.AddWithValue(“uid”, inventid); cmd.ExecuteNonQuery(); mysqlCon.Close(); GridFill(); }…

Details