We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 148165e commit e533a31Copy full SHA for e533a31
composer.json
@@ -5,7 +5,7 @@
5
"keywords": ["activerecord", "orm"],
6
"homepage": "http://www.phpactiverecord.org/",
7
"license": "MIT",
8
- "version": "2.0.0-rc.9",
+ "version": "2.0.0-rc.10",
9
"require": {
10
"php": ">=8.1.0",
11
"ext-bcmath": "*"
lib/Relation.php
@@ -753,8 +753,8 @@ protected function get_models_from_cache(array $pks)
753
$models = [];
754
$table = $this->table();
755
756
- $options = $this->options;
757
foreach ($pks as $pk) {
+ $options = $this->options;
758
$options['conditions'] ??= [];
759
$options['conditions'][] = $this->pk_conditions((array) $pk);
760
$models[] = Cache::get($table->cache_key_for_model($pk), function () use ($table, $options) {
0 commit comments