Search code examples
backbone.js

Is it necessary to have attributes in model for every field in database table?


I have a table(tbl_brand) with five fields and i want to make model and collection for that table. Is it necessary to have all field s attributes in model?


Solution

  • yes you need to have attributes in model for every field in database table. Otherwise it wont work.