php - Advice on creating specific data type in CakePHP -


i have model called company contains field called type. based on type, i'd offer user list of checkboxes select add more data type. more specific, based on business type, i'd offer range of services can check off if provide.

what best method achieve this? add new field called services , implode/explode options there? or set database relation?

the list of business types , services static, typically use array opposed database table.

any input super.

starts beginning adding field name services in existing table wouldn't create problem because of low data in table, when more , more data inserted in table effect communication goes decreases that's means data execution time getting more when type , services lives in common table, better when both stay differently, in case queue data execution time less, , performance increase.

note:- english poor please feel free editing , suggest me mistakes :)


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -