Skip to content

Commit e533a31

Browse files
authored
fix logic (#113)
1 parent 148165e commit e533a31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": ["activerecord", "orm"],
66
"homepage": "http://www.phpactiverecord.org/",
77
"license": "MIT",
8-
"version": "2.0.0-rc.9",
8+
"version": "2.0.0-rc.10",
99
"require": {
1010
"php": ">=8.1.0",
1111
"ext-bcmath": "*"

lib/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,8 @@ protected function get_models_from_cache(array $pks)
753753
$models = [];
754754
$table = $this->table();
755755

756-
$options = $this->options;
757756
foreach ($pks as $pk) {
757+
$options = $this->options;
758758
$options['conditions'] ??= [];
759759
$options['conditions'][] = $this->pk_conditions((array) $pk);
760760
$models[] = Cache::get($table->cache_key_for_model($pk), function () use ($table, $options) {

0 commit comments

Comments
 (0)