This commit is contained in:
2023-04-25 18:09:41 +00:00
parent 7b2f03e139
commit c2f00d6c21
6 changed files with 118 additions and 74 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ class BelongsToMany {
$this->remoteLimit = $remoteLimit;
}
function get() {
function get() : Collection {
$limitsSql = '';
foreach ($this->remoteLimit as $key => $value) {
@@ -40,7 +40,7 @@ class BelongsToMany {
}
if (empty($ids)) {
return Array();
return new Collection();
}
return $this->foreignObject::findMany(array_merge(Array('id' => Array('IN', $ids)), $this->remoteFilter), Array('*'), $this->remoteLimit);