Commands

October 16, 2025 ยท View on GitHub

Debug class

Show entity file mapping metadata for a class.

php bin/console vich:mapping:debug-class App\\Entity\\Foo

Debug mapping

Show mapping details.

php bin/console vich:mapping:debug foo_mapping

Uploadable classes

Searches for uploadable classes.

php bin/console vich:mapping:list-classes

Cleanup orphaned files

Removes orphaned files from storage that are no longer referenced in the database.

php bin/console vich:cleanup --dry-run

For detailed documentation, options, examples, and safety considerations, see the cleanup command documentation.

Return to the index