Created
February 27, 2020 07:58
-
-
Save hudri/9c74b644083c63913cf95406212c8ae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./drs php-eval '$query = \Drupal::entityTypeManager()->getStorage("node")->getQuery(); | |
$query->condition("type", ["wt_room", "wt_package"], "IN"); | |
$nodeIds = $query->execute(); | |
$hotelEntities = \Drupal::entityTypeManager()->getStorage("node")->loadMultiple($nodeIds); | |
foreach ($hotelEntities as $hotelEntity) { | |
$hotelEntity->set("remote_datasource", "KOGNITIV"); | |
$hotelEntity->save(); | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment