title: CakePHP saving data in multiple tables
body: <p>I have shop struct like</p>
  
  <p>1: <code>Shop</code> has many <code>Categories</code></p>
  
  <p>2: <code>Categories</code> have 1 to many <code>Sizes</code> and <code>Products</code></p>
  
  <p>3:  Each <code>product</code> belongs to exactly one <code>Category</code></p>
  
  <p>4: As <code>Sizes</code> belongs to <code>Categories</code> so each <code>product</code> belonging to a <code>category</code> will have same sizes.</p>
  
  <p><strong>Now my problem is in Product add form.</strong></p>
  
  <p>I have form the contains product's input fields and a selectbox to select the <code>Category</code>.</p>
  
  <p>As soon as I select a category, an Ajax request will be created, which return <code>sizes</code> as inputbox assigned to the selected category. The input boxes will be used to enter the price
  for each size of the product. (As the input fields will be generated in Ajax, how may i use the form helper?)</p>
  
  <p>Now I want that on clicking the save button, the product information should be stored in product table, and the prices should be saved in</p>
  
  <p><code>Product_Prices</code> table which contains <code>product_id, size_id, price</code> columns.</p>
  
  <p>How should i name my inputboxs? and how should i call the save method so that the informations are properly saved?</p>