Account created on 19 November 2019, about 5 years ago
#

Recent comments

I've got it reading the references from the database which is great but i still cant figure out mapping for the reference for saving.
It looks like the value is being added to the array as a 1 with no key or value for the item.
When an entity reference item is made then theres two fields in the external entity manage page for the entity type.
The first field is entity id, that seems to work i have set like you have "refs/*",
Then the second field where it just has the entity name im not sure what to put in there.

Fatal error: Declaration of Drupal\external_entities\GuzzleHttp\DebugClient::request(string $method, $uri = '', array $options = []): Psr\Http\Message\ResponseInterface must be compatible with GuzzleHttp\Client::request($method, $uri = '', array $options = []) in /var/www/modules/contrib/external_entities/src/GuzzleHttp/DebugClient.php on line 26

Im getting the data from mongo so the id is _id and i put _id in the uuid as well.
The structure is the same as your array.

Thank you guignonv, I installed it and it looked great, I checked the debug box and now got a white screen with error:
Message Error: Call to undefined method GuzzleHttp\Utils::defaultUserAgent() in Drupal\external_entities\GuzzleHttp\DebugClientFactory->fromOptions() (line 52 of /var/www/modules/contrib/external_entities/src/GuzzleHttp/DebugClientFactory.php).

Probably have to drush configet set to uncheck it or something for now.

Thank you, ive changed it to 'beta' in the composer.json and reran it and get this:
Problem 1
- drupal/event_platform[1.0.0-beta1, ..., 1.0.1] require drupal/registration_role ^1.1 -> satisfiable by drupal/registration_role[1.1.0-beta2, 1.1.0].
- drupal/registration_role[1.0.0-beta1, ..., 1.1.0-beta2] require drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
- drupal/registration_role 1.1.0 requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0-beta6, ..., 8.9.20, 9.0.0-beta1, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires drupal/event_platform ^1.0 -> satisfiable by drupal/event_platform[1.0.0-beta1, ..., 1.0.1].

Thank you Shreya_th,
I can see the id needs to have an underscore preceding in the object, but how do I get to that stage?
If i want to store commerce_Product or variation types or attributes in mongodb, how do i change the existing storage? in hook_entity_type_alter and ->setstorageclass(), Do i write a whole new class or use a mongodb class?

Thank you Shreya_th that worked, Fgm, Im using php7.4 and the latest dev version of mongodv and drupal 9.5.7.
Is there any examples of how i can use mongodb to store taxonomy terms or commerce entities?
Thank you.

Thank you for your work.
It looks like $group_content_enabler in "$group->addRelationship($replicate, $group_content_enabler);" is NULL so its not creating the relationship and throws and error "Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID '' was not found. in Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (line 79 of /var/www/clients/client1/web19/web/web/core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php)."

Production build 0.71.5 2024