DDC-147: AnnotationDriver::preload needs caching #183

Closed
opened 2026-01-22 12:29:51 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 15, 2009).

Jira issue originally created by user mcurcio:

I discovered this issue when running the cli/schema-tool and getting a message that there are "no classes to process". It appears that preload() is called within ORM\Mapping\ClassMetadataFactory first, which is causing the preload in schemaToolTask to return no classes. Perhaps preload() should keep a record of previously loaded models?

Originally created by @doctrinebot on GitHub (Nov 15, 2009). Jira issue originally created by user mcurcio: I discovered this issue when running the cli/schema-tool and getting a message that there are "no classes to process". It appears that preload() is called within ORM\Mapping\ClassMetadataFactory first, which is causing the preload in schemaToolTask to return no classes. Perhaps preload() should keep a record of previously loaded models?
admin added the Bug label 2026-01-22 12:29:51 +01:00
admin closed this issue 2026-01-22 12:29:52 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 16, 2009):

Comment created by @beberlei:

We plan to refactor away from preload to a loadAll() for the next release, we have seen this issue before.

As a workaround you should be good by setting no metadata cache in the cli-config.php.

@doctrinebot commented on GitHub (Nov 16, 2009): Comment created by @beberlei: We plan to refactor away from preload to a loadAll() for the next release, we have seen this issue before. As a workaround you should be good by setting no metadata cache in the cli-config.php.
Author
Owner

@doctrinebot commented on GitHub (Dec 15, 2009):

Comment created by romanb:

PRELOAD mode removed. ClassMetadataFactory#getAllMetadata introduced.

@doctrinebot commented on GitHub (Dec 15, 2009): Comment created by romanb: PRELOAD mode removed. ClassMetadataFactory#getAllMetadata introduced.
Author
Owner

@doctrinebot commented on GitHub (Dec 15, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 15, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#183