DDC-3509: Mapping exclusion #4320

Closed
opened 2026-01-22 14:39:24 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 16, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user greg0ire:

Using the yaml driver, are there any methods to exclude some mapping files? I have a library with all mappings in a directory and would like to read only some of these mappings. How can I do that ? I am under the impression that you can manage things on a per-directory basis only, not on a per-file basis.

Originally created by @doctrinebot on GitHub (Jan 16, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user greg0ire: Using the yaml driver, are there any methods to exclude some mapping files? I have a library with all mappings in a directory and would like to read only some of these mappings. How can I do that ? I am under the impression that you can manage things on a per-directory basis only, not on a per-file basis.
admin added the Improvement label 2026-01-22 14:39:24 +01:00
admin closed this issue 2026-01-22 14:39:24 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 16, 2015):

Comment created by @ocramius:

You can pass a custom file locator to your Yaml mapping driver:

b44549dcc9/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php (L64)

That would allow you to define how files are found, and where.

@doctrinebot commented on GitHub (Jan 16, 2015): Comment created by @ocramius: You can pass a custom file locator to your Yaml mapping driver: https://github.com/doctrine/common/blob/b44549dcc98a18f0728df05df523bdf179edb90b/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php#L64 That would allow you to define how files are found, and where.
Author
Owner

@doctrinebot commented on GitHub (Jan 16, 2015):

Issue was closed with resolution "Invalid"

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

No dependencies set.

Reference: doctrine/archived-orm#4320