-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
Description
When using Postgres, the following error will be thrown when trying to create a new entry:
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "id" violates not-null constraint
The driver tries to use null as value for the id column for new entries.
eloquent-driver/src/Entries/Entry.php
Lines 44 to 46 in 2c4a775
| return $class::findOrNew($this->id())->fill([ | |
| 'id' => $this->id(), | |
| 'origin_id' => $this->origin()?->id(), |
Can we just delete this line, so that the id will not be written? Or is there any case where we need the id to be there?
edalzell
Metadata
Metadata
Assignees
Labels
No labels