This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Primary keys (Sequence) not setting after save #191
Open
Description
My table 'users' have following structure (postgree):
CREATE TABLE users
(
id serial NOT NULL,
login character varying(255),
CONSTRAINT users_pkey PRIMARY KEY (id)
) WITH (
OIDS=FALSE
);
I am write this code
$row = new RowGateway('id', 'users', $this->getAdapter());
$row->login = 'new';
$row->save();
And I have an exeption: While processing primary key data, a known key id was not found in the data array
I try use Pdo_Pgsql and Pgsql driver
Please fix it