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?
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.
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 first
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
for example
deleting loadDatabase.php also not working
Did you regenerate your models as per documented approach/guideline?
can you share link please?
thx
its strange, the loadDatabase.php is not git and will be generated every ci run
cache is never git - https://github.com/spryker-shop/suite/blob/master/.gitignore#L39
yeah its not in git, but will be generated on ci task run
so I dont geht why it fails
You did not yet regenerate your models and generated files as outlined above.
https://github.com/fond-of/codeception-spryker handles the generation for us. but it seems it was a caching issue in github builds