You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
class MyModel extends Orm\Model
{
public static function get_instance()
{
$results = static::find('all', []);
var_dump($results);exit;
}
}
// array(0) {
// }
it works correctly when I set enable_cache to true.
maybe...
I think the cause of this problem is that second args of mysqli::query() is MYSQLI_USE_RESULT and any fetching method is not called (like mysqli_fetch_row()).
hi
when I set db config to
type: mysqli
andenable_cache:false
,\ORM\Model::find() always returns empty array.
like this:
fuel/app/config/db.php
it works correctly when I set enable_cache to true.
maybe...
I think the cause of this problem is that second args of
mysqli::query()
is MYSQLI_USE_RESULT and any fetching method is not called (likemysqli_fetch_row()
).https://github.com/fuel/core/blob/1.8/master/classes/database/mysqli/connection.php#L283
using version:
The text was updated successfully, but these errors were encountered: