mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 06:14:04 +00:00
Fix some tests
This commit is contained in:
parent
1f88a1ff94
commit
12c05c0af6
6 changed files with 53 additions and 95 deletions
|
|
@ -81,8 +81,8 @@ class TenantModel extends Model
|
|||
|
||||
public function getMany(array $keys): array
|
||||
{
|
||||
return array_reduce($keys, function ($result, $key) {
|
||||
$result[$key] = $this->get[$key];
|
||||
return array_reduce($keys, function ($result, $key) { // todo2 performance
|
||||
$result[$key] = $this->get($key);
|
||||
|
||||
return $result;
|
||||
}, []);
|
||||
|
|
@ -105,7 +105,7 @@ class TenantModel extends Model
|
|||
public function putMany(array $kvPairs)
|
||||
{
|
||||
$customColumns = [];
|
||||
$jsonObj = json_decode($this->{$this->customColumns()});
|
||||
$jsonObj = json_decode($this->{$this->dataColumn()});
|
||||
|
||||
foreach ($kvPairs as $key => $value) {
|
||||
if (in_array($key, $this->customColumns())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue