You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the scope of doctrine/persistence#429
(available from `doctrine/persistence` >= 4.1) there was added
`ColocatedMappingDriver::$sourceFilePathNames`, which allows
passing the iterable of file paths for the mapping driver to use.
This commit integrates those changes into `AttributeDriver`.
Since `doctrine/orm` maintains the support for `doctrine/persistence`
of older versions, `AttributeDriver` ensures that `$sourceFilePathNames`
is actually defined. Tests use `InstalledVersions` to opt into new
behaviour if `doctrine/persistence` is at least version 4.1.
`AttributeDriver` now accepts a new boolean to opt into the new
behaviour. This flag is used to distinguish between an array of
directory paths (the existing way) and iterable of file paths
(the new way). The old behaviour can be adapted into new by using
`glob()` search on directory paths.
0 commit comments