laravel-doctrine / orm

A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen

Home Page:http://laraveldoctrine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]Config publish error

zhalil opened this issue · comments

[BUG]

laravel-doctrine 1.8, laravel - 9.19

publish config

publish config error

clean install

  1. composer create-project laravel/laravel example-app
  2. cd example-app
    3)composer require laravel-doctrine/orm
    4)add to config/app.php :
    LaravelDoctrine\ORM\DoctrineServiceProvider::class,
    'EntityManager' => LaravelDoctrine\ORM\Facades\EntityManager::class,
    'Registry' => LaravelDoctrine\ORM\Facades\Registry::class,
    'Doctrine' => LaravelDoctrine\ORM\Facades\Doctrine::class,
    5)php artisan vendor:publish --tag="config" --provider="LaravelDoctrine\ORM\DoctrineServiceProvider"
    and on this error:
    In ProviderRepository.php line 149:
    Call to undefined method LaravelDoctrine\ORM\Facades\EntityManager::isDeferred()

works fine for me

note the config/app.php steps are no longer needed since auto discover picks them up