KumbiaPHP / ActiveRecord

New Active Record for KumbiaPHP
https://kumbiaphp.com
BSD 3-Clause "New" or "Revised" License
24 stars 11 forks source link

autoincrement pgsql #101

Open flesoft opened 4 years ago

flesoft commented 4 years ago

Php: 7.4-fpm KumbiaPHP: 1.1.1 pgsql: postgres:11.5-alpine servidor: nginx

cuando quiero usar el codigo con el LiteRecord $class->create($dataSave); tengo un error: {"error":"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column \"id\" violates not-null constraint\nDETAIL: Failing row contains (null, 01, Amazonas, 01, Chachapoyas, 11, Levanto, 2020-05-24 00:58:54, null)."} adjunto imagen de la tabla. imagen el error ocurre porque LiteRecord le pone NULL a la ID que es autoincrement

joanhey commented 4 years ago

Estamos limpiando el create y update. En breve estará

flesoft commented 4 years ago

@joanhey aun tengo el problema alguna solucion que recomiende.

flesoft commented 4 years ago

temporalmente e realizado este cambio: imagen imagen