- Work done on many-to-many relations - code must still be refactored out of the EntityTrait.

- Fixed Entity::field("propertyname") function to look for name into @Field() annotation and returns it if it exists.
- A lot of bug fixes made into SQL fragments.
This commit is contained in:
Dave Mc Nicoll committed 2020-04-09 09:50:09 -04:00
1 parent 6e84fc7195
commit c64c7778bd
20 files changed
+220 -105

No files matched your search

+4 -2
View File
@@ -3,9 +3,11 @@
namespace Ulmus\Query;
class OrderBy extends Fragment {
public int $order = 70;
public int $order = 80;
public array $orderBy = [];
const SQL_TOKEN = "ORDER BY";
public function set(array $order) : self
{
@@ -27,7 +29,7 @@ class OrderBy extends Fragment {
}, $this->orderBy);
return $this->renderSegments([
'ORDER BY', implode(", ", $list)
static::SQL_TOKEN, implode(", ", $list)
]);
}