for ($i = 1; $i <= 50; $i++) {
$users = R::dispense('users');
$users->id = $i;
$users->num = $i;
$users->player_id = NULL;
R::store($users);
}
$records = R::dispense('table', 100);
for($i = 0; $i < 100; $i++) {
$records[$i]->data = $someData;
}
R::storeAll($records);