Versioning Class Definitions


#1

In the current version of Pimcore 5.5.3, the .gitignore has the /var/classes/DataObject directory listed. Are there any drawbacks to versioning these files? We have a local development workflow that would greatly benefit from having these included in our repo.

Update:
We’ve tried including these in our repo, however upon pushing them up and pulling them back down locally, they do not appear to be seen by Pimcore. Is there a build process that needs to be run to have these loaded?


#2

You have to rebuild them on changes:

bin/console pimcore:deployment:classes-rebuild -c -d

NOTE: Use -d only to delete classes that don’t exist anymore -> this also results in deleting db-tables


#3

Fantastic. Thank you for the valuable info!