Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Look for Entity metadata other than from Laravel's app/ path #120

Open
jebbdomingo opened this issue Sep 13, 2015 · 1 comment
Open

Look for Entity metadata other than from Laravel's app/ path #120

jebbdomingo opened this issue Sep 13, 2015 · 1 comment

Comments

@jebbdomingo
Copy link

In an application architecture where one opted to move their application codes outside of the Framework (Laravel) they could probably house their Entities/metadata in a specific directory outside of Laravel's "app/" directory. In that case the metadata will not resolve correctly even if you set the correct namespace in doctrine.php config file since the ServiceProvider is looking for Laravel's default path app_path(). Could you support that and then probably add an optional "path" (in addition to namespace) in the doctrine.php config file? So that it's looking for the desired location?

@0x9be00ff1
Copy link

try app_path('../src/YourDoctrineMappings')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants