Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Extend Plastic Builder to Support Nesting Queries
- \Sleimanx2\Plastic\DSL\SearchBuilder::macro('nest', function (\Closure $closure) {
- $builder = new self($this->connection, new $this->query());
- $closure($builder);
- $query = $builder->query->getQueries();
- $this->append($query);
- return $this;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement