Changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user