- Work done on insert() and update() function from QueryBuilder.

- Fixed save() and saveAll() from repository
- QueryBuilder can now be flushed after queries.
This commit is contained in:
Dave Mc Nicoll committed 2020-02-17 08:23:41 -05:00
1 parent 79fdabe786
commit d1961ec807
9 files changed
+122 -44

No files matched your search

+12 -1
View File
@@ -18,6 +18,17 @@ class EntityCollection extends \ArrayObject {
}
}
}
public function filtersCollection(Callable $callback) : self
{
$collection = new static();
foreach($this->filters($callback) as $item) {
$collection->append($item);
}
return $collection;
}
public function searchOne($value, string $field) : object
{
@@ -53,4 +64,4 @@ class EntityCollection extends \ArrayObject {
return $list;
}
}
}