Bien, ejecutando su sugerencia al pie de la letra tengo este error(borrando todo lo que habia en model ).
Código BASH:
Ver originaljorge@copia:/var/www/doctrine2/system/application$ ./doctrine build-all-reload
build-all-reload - Are you sure you wish to drop your databases? (y/n)
y
build-all-reload - Successfully dropped database for connection named 'ci_doctrine'
build-all-reload - Successfully created database for connection named 'ci_doctrine'
build-all-reload - Created tables successfully
Couldn't find class User
Nota: Antes de hacer esto no hize ./doctrine generate-models-yaml
Previamente a eso: borrando todo en models poniendo public.user y generando models y luego ./doctrine build-all-reload me da este error:
Código BASH:
Ver originaljorge@copia:/var/www/doctrine2/system/application$ ./doctrine generate-models-yaml
generate-models-yaml - Generated models successfully from YAML schema
jorge@copia:/var/www/doctrine2/system/application$ ./doctrine build-all-reload
build-all-reload - Are you sure you wish to drop your databases? (y/n)
y
build-all-reload - Successfully dropped database for connection named 'ci_doctrine'
build-all-reload - Successfully created database for connection named 'ci_doctrine'
build-all-reload - Created tables successfully
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "public.user" does not exist
LINE 1: INSERT INTO public.user (username, password) VALUES ($1, $2)
En ambos casos, sin abrir pgadmin