j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

Finding multiple records makes API Crash #369

Closed Loown closed 3 years ago

Loown commented 3 years ago

Hi, I have a Query writen like this

ORM::forTable(static::TABLE_NAME) ->where('uv.validated', 1) ->join('UserValidation', ['uv.ENOS', '=', static::TABLE_NAME.'.ENOS'], 'uv') ->findArray();

I get a 500 error without the capability of debugging it.

Works fine with findOne();

Think it's a MySQL configuration issue, but I'd appreciate getting more informations about it.

Here si my configuration :

[ 'connection_string' => 'mysql:host=' . $db['host'] . ':' . $db['port'] . '; dbname=' . $db['database'], 'username' => $db['user'], 'password' => $db['password'], 'driver_options' => [ PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' ], 'return_result_sets' => 'true' ]

Thanks in advance