Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

This may be a silly question but did you set your PDO Fetch Style at the top of your database config to PDO::FETCH_BOTH?

0

Thanks.. but in the config it is set as: 'fetch' => PDO::FETCH_CLASS.

Also I forgot to mention that I am using PHPUnit/testing which is using SQLite/memory... not sure if that makes any difference.

Actually thanks for that suggestion, for some reason this setting from actual config file (config/database) didn't take effect, so I tried putting it inside the config/testing/database.php file where I had my default database set as being SQLite.. and it started working.. weird?

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shez1983 shez1983 Joined 31 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.