-
Notifications
You must be signed in to change notification settings - Fork 248
Made it possible to sort on 1 to 1 relationship attributes #1833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
77783f4
ed8c2fe
330c35f
6a0e694
11aa815
5147e42
de40a6a
7ed22bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?php | ||
|
|
||
| namespace DBA; | ||
|
|
||
| class CoalesceOrderFilter extends Order { | ||
| // The columns to do the COALESCE function on | ||
| private $columns; | ||
| private $type; | ||
|
|
||
| function __construct($columns, $type) { | ||
| $this->columns = $columns; | ||
| $this->type = $type; | ||
| } | ||
|
|
||
| function getQueryString(AbstractModelFactory $factory, bool $includeTable = false): string { | ||
| return "COALESCE(" . implode(", ", $this->columns) . ") " . $this->type; | ||
|
Comment on lines
+15
to
+16
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,4 +17,14 @@ abstract function getMatch1(); | |||||
| * @return string | ||||||
| */ | ||||||
| abstract function getMatch2(); | ||||||
|
|
||||||
| /** | ||||||
| * @return string | ||||||
| */ | ||||||
| abstract function getJoinType(); | ||||||
|
|
||||||
| /** | ||||||
| * @return QueryFilter[] array of queryfilters that have to be perfromed on the join | ||||||
|
||||||
| * @return QueryFilter[] array of queryfilters that have to be perfromed on the join | |
| * @return QueryFilter[] array of queryfilters that have to be performed on the join |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,18 +27,31 @@ class JoinFilter extends Join { | |||||
| * @var AbstractModelFactory | ||||||
| */ | ||||||
| private $overrideOwnFactory; | ||||||
|
|
||||||
| /** | ||||||
| * @var string | ||||||
| */ | ||||||
| private $joinType; | ||||||
|
|
||||||
| /** | ||||||
| * @var QueryFilter[] array of queryfilters that have to be perfromed on the join | ||||||
|
||||||
| * @var QueryFilter[] array of queryfilters that have to be perfromed on the join | |
| * @var QueryFilter[] array of queryfilters that have to be performed on the join |
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace on blank lines. Lines 87 and 95 appear to have unnecessary blank lines or trailing whitespace that should be removed for code cleanliness.
Uh oh!
There was an error while loading. Please reload this page.