What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
So I'm having an issue where my installation is not regenerating the transfer objects. when I run `
So I'm having an issue where my installation is not regenerating the transfer objects. when I run docker/sdk cli console transfer:generate
it ends up throwing an exception saying:
Error - Exception: Class 'Generated\Shared\Transfer\MonitoringTransactionEventTransfer' not found in /data/vendor/spryker/monitoring/src/Spryker/Zed/Monitoring/Business/EventHandler/EventHandler.php (97)
I can tell you the src/Generated
directory does not exist anymore because I deleted it while diagnosing this issue, assuming it would just be regenerated. Initially, the src/Generated/Shared/Transfer
directory was empty, but I don't recall if that was something I did or something that happened on its own somehow.
Does anyone know what command I should run to make Spryker regenerate that src/Generated
directory and the Transfer
directory contents?
Comments
-
Ok this was something related to an update of propel at Spryker
so I assume that you have this filedata/cache/propel/generated-conf/loadDatabase.php
so deleted and then rundocker/sdk cli console propel:model:build
thendocker/sdk cli console transfer:generate
this issue was faced before while I worked at Spryker
so forgive me if I missed something
https://github.com/spryker/propel-orm/releases/tag/1.16.00 -
@U04CLCFNB9T Thanks for the idea, but it seems that my composer is pulling in spryker/propel-orm v1.14.1, is that still susceptible to the issue?
I did not have the file you mentioned, but I did have
src/Orm/Propel/generated-conf/loadDatabase.php
which seems to be getting recreated when I run various console commands.Running
docker/sdk cli console propel:model:build
after deleting the file I mentioned also causes the same error exception I saw initially. I get the same result when running thetransfer:generate
command.If I try to force a newer propel-orm (like
>=1.16.0
) incomposer.json
, I get errors fromdocker/sdk cli composer update
saying:spryker/propel-orm[1.16.0, ..., 1.17.0] require propel/propel 2.0.0-beta2 -> satisfiable by propel/propel[2.0.0-beta2] from composer repo (<https://repo.packagist.org>) but propel/propel[dev-complexity-reduction-database-model, ..., dev-php74, 2.0.0-alpha1, ..., 2.0.x-dev (alias of dev-master)] from vcs repo (github <https://github.com/spryker/Propel2.git>) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See <https://getcomposer.org/repoprio> for details and assistance.
Any other ideas?
0 -
Do you have the latest version of your demo-shop??
0 -
this is my current version of spryker/propel-orm
which has the propel/propel 2.0.0-beta2
at this version of propel/propel the*Map.php
classes have big changes
for example checksrc/Orm/Zed/Acl/Persistence/Map/SpyAclGroupTableMap::initialize()
you will see that your version of this function does not have a return type hint0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random