@@ -42,7 +42,7 @@ public static function toObject(array $desc)
42
42
43
43
// If the constant has an alias, it is declared in the columns section.
44
44
// If this is the case, let's wrap it in an "expression"
45
- if (isset ($ desc ['alias ' ])) {
45
+ if (isset ($ desc ['alias ' ][ ' name ' ] )) {
46
46
$ expression = new Expression ();
47
47
$ expression ->setBaseExpression ($ desc ['base_expr ' ]);
48
48
$ expression ->setSubTree ($ const );
@@ -108,7 +108,7 @@ public static function toObject(array $desc)
108
108
$ instance ->setDatabase ($ baseName );
109
109
}
110
110
111
- if (!empty ($ desc ['alias ' ])) {
111
+ if (!empty ($ desc ['alias ' ][ ' name ' ] )) {
112
112
$ instance ->setAlias ($ desc ['alias ' ]['name ' ]);
113
113
}
114
114
@@ -225,7 +225,7 @@ public static function toObject(array $desc)
225
225
$ expr ->setJoinType ($ desc ['join_type ' ]);
226
226
}
227
227
228
- if (isset ($ desc ['alias ' ])) {
228
+ if (isset ($ desc ['alias ' ][ ' name ' ] )) {
229
229
$ expr ->setAlias ($ desc ['alias ' ]['name ' ]);
230
230
}
231
231
@@ -285,7 +285,7 @@ public static function toObject(array $desc)
285
285
$ expr ->setSubTree (self ::buildFromSubtree ($ desc ['sub_tree ' ]));
286
286
}
287
287
288
- if (isset ($ desc ['alias ' ])) {
288
+ if (isset ($ desc ['alias ' ][ ' name ' ] )) {
289
289
$ expr ->setAlias ($ desc ['alias ' ]['name ' ]);
290
290
}
291
291
if (isset ($ desc ['direction ' ])) {
0 commit comments