laravel-doctrine icon indicating copy to clipboard operation
laravel-doctrine copied to clipboard

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

Open jebbdomingo opened this issue 10 years ago • 1 comments

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?

jebbdomingo avatar Sep 13 '15 03:09 jebbdomingo

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

0x9be00ff1 avatar Sep 18 '15 10:09 0x9be00ff1