I have a table with a foreign key defined in it. After running the cake bake command, I got correctly generated the table file. That is, the references ( hasMany, belongsTo, etc. ) are included in the file. Al required fields defined as not null in the database structure other than the ones defined as foreign keys are generated as to "requirepresence". But, the ones that are foreing keys are not included as required to have presence ( so I have to manually add them ).
The question is : is this how the cake bake command supposed to work ? or I am missing something in the way ?
Thanks. Regards. Facundo.