mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3509: Mapping exclusion #4320
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?
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.
@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):
Issue was closed with resolution "Invalid"