When trying to import `commerce_store` entity via `drush dcdi` I get following error:

Error: Call to undefined method Drupal\commerce_store\Entity\Store::getChangedTime() in /home/webroot/web/modules/contrib/default_content_deploy/src/Importer.php on line 391 #0 /home/webroot/web/modules/contrib/default_content_deploy/src/Importer.php(310): Drupal\default_content_deploy\Importer->editEntityData()
#1 /home/webroot/web/modules/contrib/default_content_deploy/src/Importer.php(223): Drupal\default_content_deploy\Importer->decodeFile()
#2 /home/webroot/web/modules/contrib/default_content_deploy/src/Commands/DefaultContentDeployCommands.php(273): Drupal\default_content_deploy\Importer->prepareForImport()
#3 [internal function]: Drupal\default_content_deploy\Commands\DefaultContentDeployCommands->contentDeployImport()
#4 /home/webroot/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array()
#5 /home/webroot/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#6 /home/webroot/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#7 /home/webroot/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process()
#8 /home/webroot/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#9 /home/webroot/vendor/symfony/console/Application.php(1000): Symfony\Component\Console\Command\Command->run()
#10 /home/webroot/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand()
#11 /home/webroot/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun()
#12 /home/webroot/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run()
#13 /home/webroot/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun()
#14 /home/webroot/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run()
#15 /home/webroot/vendor/drush/drush/drush(4): require('/home/webroot...')
#16 {main}

It seems that importer assumes `EntityChangedTrait` which is not a case in all entities.

Comments

mhrabovcin created an issue. See original summary.

miroslav-lee’s picture

Status: Active » Fixed

It fixed in the last dev version. Thank you!

mhrabovcin’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.