mitchellvanw / laravel-doctrine

NO LONGER MAINTAINED! A Doctrine 2 implementation that melts with Laravel
MIT License
187 stars 74 forks source link

php artisan "Call to undefined method [package]" #109

Closed ghost closed 9 years ago

ghost commented 9 years ago

After placing the service provider in my providers array, php artisan commands no longer work. Any ideas?

It seems to be the line 29 in the LaravelDoctrineServiceProvider class:

$this->package('mitchellvanw/laravel-doctrine', 'doctrine', __DIR__ . '/..');

that it fails on

ghost commented 9 years ago

I now see that the package function no longer exists in Laravel 5.

Laravel 4.2: http://laravel.com/api/4.2/Illuminate/Support/ServiceProvider.html Laravel 5: http://laravel.com/api/5.0/Illuminate/Support/ServiceProvider.html

It looks to be replaced with commands() which takes an array of some sort

kirkbushell commented 9 years ago

What version of laravel-doctrine are you using? I believe this issue has already been resolved on the dev branch. laravel-doctrine is not yet L5 supported, but we're almost there.

ghost commented 9 years ago

Ahhh I see, yes... I'm using Laravel 5... That'd be why!

kirkbushell commented 9 years ago

You can start using the master branch if you like as we move towards L5 support.

ghost commented 9 years ago

Unfortunately still uses the package method... But will stay tuned for your updates :)

kirkbushell commented 9 years ago

@jamestrusleroval will close this for now as it is resolved on the laravel 5 dev branch.