Gracias Cristian.
La verdad que al crear la tabla en el phpMyAdmin poniendo las columnas
created_at y updated_at como TIMESTAMP, él solo añade el
CURRENT_TIMESTAMP y el 0000-00-00 00:00:00 y por más que lo intente
sacar lo vuelve a grabar así. al ejecutar el propel build schema
genera el siguiente schema
propel:
articulo:
_attributes:
idMethod: native
id:
type: INTEGER
required: true
autoIncrement: true
primaryKey: true
descripcion:
type: VARCHAR
size: 100
required: true
default:
cantidad:
type: INTEGER
required: true
default:
precio:
type: INTEGER
required: true
default:
cantidad_visitas:
type: INTEGER
required: true
default: 0
oferta:
type: CHAR
size: 1
required: true
default: N
tipo_venta:
type: CHAR
size: 1
required: true
default: S
estado_codigo:
type: CHAR
size: 1
required: true
default: I
created_at:
type: TIMESTAMP
required: true
default: CURRENT_TIMESTAMP
updated_at:
type: TIMESTAMP
required: true
default: 0000-00-00 00:00:00
y al ejecutar el propel build model genera el siguiente error
[propel-om] - processing database : propel
[propel-om] + articulo
[propel-om] -> BaseArticuloPeer [builder: SfPeerBuilder]
[propel-om] -> BaseArticulo [builder: SfObjectBuilder]
Execution of target "om-template" failed for the following reason: D:
\symfony\lib\vendor\propel-generator\build-propel.xml:470:1: Unable to
parse default value as date/time value: 'CURRENT_TIMESTAMP'