1, 'role' => 1, ], [ 'user' => 2, 'role' => 2, ], [ 'user' => 3, 'role' => 2, ], [ 'user' => 4, 'role' => 3, ], [ 'user' => 6, 'role' => 3, ], [ 'user' => 8, 'role' => 3, ], [ 'user' => 9, 'role' => 3, ], [ 'user' => 10, 'role' => 2, ], [ 'user' => 12, 'role' => 3, ], [ 'user' => 11, 'role' => 3, ], ]; $this->execute('SET unique_checks=0; SET foreign_key_checks=0;'); $this->table('user_roles') ->insert($data) ->saveData(); $this->execute('SET unique_checks=1; SET foreign_key_checks=1;'); } }