You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostgresTable::getSequence() always returns null. The primary sequence is only assigned inside fetchPrimaryKeys() behind if (\is_array($this->primarySequence) && …) (src/Driver/Postgres/Schema/PostgresTable.php:254), but the property is ?string and starts as null, so the condition is never true and $this->primarySequence = $this->sequences[$column] never runs.
Is this a regression?
Not checked.
To Reproduce
Postgres table with a serial/bigserial primary key.
$db->table('users')->getSchema()->getSequence().
Returns null instead of users_id_seq.
Expected behaviour
The name of the primary key's sequence, as the docblock says ("required by ORM to correctly resolve inserted row id").
Activity