Re: How to save data in an associative model without deleting the old related records.

2010-03-11 Thread Weather Forecaster
@WebbedIT I need to keep the old records as I am in them to store additional information. In tabel ShopsMainService i write down the price of services. and I get id | shop_id | service_id | price And when I change the data, I lose the field price On Mar 10, 11:02 am, WebbedIT

How to save data in an associative model without deleting the old related records.

2010-03-09 Thread Weather Forecaster
How do I make so that Cakephp not delete related records before adding, new. There are two models of Shop and MainService. Contact them so: class Shop extends AppModel { var $hasAndBelongsToMany = array( 'MainService' = array( 'className'