Mudanças

This commit is contained in:
ahwelp
2022-04-05 20:03:21 +00:00
parent 1669a4279d
commit 477f3696ba
5 changed files with 57 additions and 35 deletions
+3 -1
View File
@@ -100,11 +100,13 @@ class Collection implements \Countable, \IteratorAggregate, \ArrayAccess
switch (get_class($relation)) {
case 'ORM\HasMany':
$this->items[$key]->$connection = $this->items[$key]->$connection()->get();
break;
case 'ORM\HasOne':
$this->items[$key]->$connection = $this->items[$key]->$connection()->get();
break;
case 'ORM\BelongsTo':
$searchs['belongsTo'][] = [];
$this->items[$key]->$connection = $this->items[$key]->$connection()->get();
break;
case 'ORM\BelongsToMany':
$this->items[$key]->$connection = $this->items[$key]->$connection()->get();