- 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:
1 parent
6e84fc7195
commit
c64c7778bd
20 files changed
+220
-105
No files matched your search
@@ -4,6 +4,8 @@ namespace Ulmus\Query;
|
||||
|
||||
class Insert extends Fragment {
|
||||
|
||||
const SQL_TOKEN = "INSERT";
|
||||
|
||||
public int $order = -100;
|
||||
|
||||
public bool $quick = false;
|
||||
@@ -21,7 +23,7 @@ class Insert extends Fragment {
|
||||
public function render() : string
|
||||
{
|
||||
return $this->renderSegments([
|
||||
'INSERT',
|
||||
static::SQL_TOKEN,
|
||||
( $this->priority ?? false ),
|
||||
( $this->ignore ? 'IGNORE' : false ),
|
||||
'INTO', $this->renderTable(),
|
||||
|
||||
Reference in new issue
Block a user