cakephp - how to configure Model Options -
i want reverse engineering db create cakephp framework.
so naming convention one:
tables named in plural. if users belongsto or belongstomany users, relationships declared like:
users owners id owner_id --> id if sites hasandbelongstomany users, relationships declared like
sites sites_users users id id <-- site_id user_id --> id so configure model options in mysqlworkbench in order create diagram.
so tried set following options doesn't work:
column defaults: pk column name: id pk column type: int column name: %col column type: varchar(45) foreign key/relationship defaults: fk name: %dtable%_id column name: %dtable%_id on update: no action on delete: no action associative column name: %stable%s_%dtable%s is right way want?
Comments
Post a Comment