Generated orm classes are different from the provided ModelCriteria
Hey there, 3 days ago the propel packages got updated and now using the latest propel/propel. Now the generated orm classes are different from the provided ModelCriteria. Can anyone confirm that?
Comments
-
Can you clarify what exactly you mean please?
They are of course different, see changelog of released propel package. The added types for param and return, the overall strictness, for example for sure change it.0 -
Hey!
Could you clarify your question please.Propel had a release last week. Spryker code was also updated on Friday.
Propel release add more strict typhints for the generated models, so code should be re-generated.You might have issues with that. If so, please remove
data/cache/propel/generated-conf/loadDatabase.php
file first0 -
Fatal error: Declaration of Orm\Zed\Customer\Persistence\Base\SpyCustomerQuery::exists(?Propel\Runtime\Connection\ConnectionInterface $con = NULL) must be compatible with Propel\Runtime\ActiveQuery\ModelCriteria::exists(?Propel\Runtime\Connection\ConnectionInterface $con = NULL): bool
0 -
for example
0 -
deleting loadDatabase.php also not working
0 -
Did you regenerate your models as per documented approach/guideline?
0 -
can you share link please?
0 -
thx
0 -
its strange, the loadDatabase.php is not git and will be generated every ci run
0 -
cache is never git - https://github.com/spryker-shop/suite/blob/master/.gitignore#L39
0 -
yeah its not in git, but will be generated on ci task run
0 -
so I dont geht why it fails
0 -
You did not yet regenerate your models and generated files as outlined above.
0 -
https://github.com/fond-of/codeception-spryker handles the generation for us. but it seems it was a caching issue in github builds
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 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
- 68 Spryker Safari Questions
- 50 Random