iberflow / laravel-model-generator

Laravel 5 model generator for an existing schema
264 stars 76 forks source link

laravel5.4.9 setFetchMode() #33

Closed woisk closed 7 years ago

woisk commented 7 years ago

[Symfony\Component\Debug\Exception\FatalThrowableError] Call to undefined method Illuminate\Database\MySqlConnection::setFetchMode()

woisk commented 7 years ago

why?

iberflow commented 7 years ago

Laravel 5.4 API must've changed. I currently don't have much time on my hands so a PR is welcome:)

acousticksan commented 7 years ago

I fix this, please approve PR

jhonkrave commented 7 years ago

I have same problem :/

iberflow commented 7 years ago

I have commented on your PR. The code you've submitted (regarding the fetch mode) has no effect. You're creating a new Dispatcher instance which means that your listener will never be fired. You need to take the Dispatcher from the service container. I am currently unable to spend time on this, so please fix your PR and I'll merge it.

trinvh commented 7 years ago

+1

iberflow commented 7 years ago

Fixed with 006fbe9 and released in 1.1.5

jacobsantos commented 7 years ago

I am still seeing this problem on Laravel 5.3. Are older versions of Laravel unsupported?

EDIT: Sorry, my problem is unrelated.

iberflow commented 7 years ago

@jacobsantos all good then? :)

jacobsantos commented 7 years ago

@ignasbernotas Yes, I made PR #37 to track my issue.