Re: saving Many to Many (HABTM)
My add view: ?php echo $form-create('Produto');? fieldset legend?php __('Add Produto');?/legend ?php echo $form-input('nome'); echo $form-input('observacao'); echo $form-input('estoque_minimo'); ?
saving Many to Many (HABTM)
Hi, When I use hasAndBelongsToMany, but my join table had other attibutes, how I save this fields? For example: customers (id) products (id) -- customers_products(id, customer_id, product_id, quantity, total_price) -- When I save a customer I want save relational products too, with quantity