I have two tables A and B. For example, if I insert record in Table A and save ,Instantly same record will be inserted into Table B when we save in table A .Every individual record will be inserted instantly from table A to Table B.
Please help me .Thanks in advance
When a new record is saved, table’s insert() method is called. You can create a record in another table from there.
I tried with insert method .but, directly records are saving in the Table B not in table A …I want all the records in table A and table B. If I create any new record in Table A it has to be save in the both the tables.
Thanks in advance.
You probably removed super() from insert() method, therefore it actually don’t save the record.
Thanks Martin.Its working fine now