I’ve been playing with the idiom for several days now, and little by little I managed to get it to actually start executing requests. However, I come across something strange, and I can not understand. The find_many () function returns only one record, and it is always the last record in the database. For example, I make the following query through mysqli, and I get all 16 users in my database:
// connection is just a singleton instance to manage DB connections $connection->getRawInstance()->getRawConnection()->query('select * from users')); // The result of this is all 16 users
Now, when I make an equivalent query in idiorm, I get user16, the last one in the database.
\ORM::configure('mysql:host=localhost;dbname=------'); \ORM::configure('username', '----'); \ORM::configure('password', '----'); \ORM::configure('logging', true); $people = \ORM::forTable('users')->findMany();
Does anyone know why this is?
source share