hi everybody, hope you don't mind if I answer him in spanish as its easier for Mendi to understand what I am saying.
Spanish:
Mendi, es mucho más fácil ejecutar un simple reemplazo del identificador que genera automáticamente
en el archivo generado. Es decir, si tu clase generada con POG se llama "members" y quieres que la
clave principal sea id, en minúsculas por ejemplo (tanto a nivel de objeto como de base de datos) reemplaza
en el archivo que te genera POG "membersId" por "id" (sin ser sensible a mayúsculas el reemplazo, de tal forma
que reemplace tanto los campos de bbdd como de la clase php. Yo lo hago a menudo para reescribir una aplicación
que no era orientada a objetos y que ya tenía su mapeado a base de datos con identificados llamados id, en vez
de los que genera POG.
Si tienes alguna duda vuelve a consultar, pero es bien sencillo. El único incoveniente es que cuando uses una
url POG para volver a generar el código tendrás que volver a reemplazar el nombre del campo para que tu código
funcione.
Suerte.
English summary:
Mendi it's easier if you just replace the string of the generated id with what the name you want it to have in
the POG generated code. What I mean is, for example, just imagine your class generated with POG is named "members"
and what you want is that the id field has name "id" instead of "membersId", (so in the database table so as a class field),
then just replace the string "membersId" with "id" in the generated file (doing a not case-sensitive replace). Doing so all
methods will work OK (Save, GetList, Get and so).
Have a nice day.
--
The most likely way for the world to be destroyed, most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.
(Nathaniel Borenstein)