We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d23940b commit ef36df0Copy full SHA for ef36df0
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Change Log
2
3
+## Version
4
+
5
+1. Added: Ability to return new query of anynomous alias function in from() method
6
7
## Version 3.2.0
8
9
1. Added: Ability to query from table alias
Query.php
@@ -119,7 +119,11 @@ public function from()
119
}
120
} elseif (is_callable($value)) {
121
$query = new Query;
122
- $value($query);
+ //To accept the return of new query object from return of anynomous function
123
+ $result = $value($query);
124
+ if($result!==null) {
125
+ $query = $result;
126
+ }
127
array_push($this->tables, array($query, $key));
128
129
0 commit comments