mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #979] [CLOSED] Bypass metadata cache in console commands #8993
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/979
Author: @c960657
Created: 3/15/2014
Status: ❌ Closed
Base:
master← Head:disable-metadata-cache📝 Commits (1)
7a2a2d8Bypass metadata cache in console commands📊 Changes
7 files changed (+7 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php(+1 -0)📝
lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php(+1 -0)📄 Description
The console commands use the metadata cache. If the metadata has been updated, you manually need to run
console orm:clear-cache:metadata.For most commands, e.g.
console orm:schema-tool:update, this is rather annoying. I don't see any good reason why you would generate queries to make your database match the stale metadata in the cache rather than the fresh metadata stored in files.This patch disables the metadata cache for most commands.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.