- 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:
1 parent
79fdabe786
commit
d1961ec807
9 files changed
+122
-44
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user