- Added some new method to EntityCollection (replaceWith, mergeWith, randomize, sort)

- WIP on virtual fields
- Some minor bugfixes
This commit is contained in:
Dave Mc Nicoll committed 2020-11-27 12:09:15 -05:00
1 parent c8397484e6
commit 30a0a80cbe
9 files changed
+213 -47

No files matched your search

+17
View File
@@ -29,6 +29,23 @@ class QueryBuilder
protected array $queryStack = [];
public function __clone()
{
if ($this->where ?? false) {
#$this->where = clone $this->where;
#$this->where->queryBuilder = $this;
}
if ($this->having ?? false) {
#$this->having = clone $this->having;
#$this->having->queryBuiler = $this;
}
if ($this->parent ?? false) {
#$this->parent = clone $this->parent;
}
}
public function select($field) : self
{
if ( null !== ( $select = $this->getFragment(Query\Select::class) ) ) {