How to save data from model without any association in cakephp [on hold]
- by Abhishek
I have base model in that i use dataManipulation method for updation in my code ,so i want to save data in receipt, receiptline model also in OpeningBankStatement.but i create association for receipt and receiptline not for OpeningBankStatement.
So i want to save data this OpeningBankStatement model without any association.my demo code is.
Array
(
[Receipt] => Array
(
[ID] => 566
[ObjectType] => 84
[TXNName] => bbnm
[TXNDate] => 03-06-2014
[BranchID] => 1
[Narration1] => 267
[Narration] => Cheque Received
[ExecutiveID] => 805
[AccountType] => 104
[Account] => 68
[ReferenceNo] =>
[TXNCurrencyID] => 3
[ExchangeRate] => 1.00000
[ManualAdiustment] => 0
[RevisionNumber] => 1
[CompanyID] => 1
[Status] => 633
)
[ReceiptLine] => Array
(
[0] => Array
(
[TXNID] => 566
[LineNo] => 0
[LineType_072] => 429
[BranchID] => 1
[AccountID] => 68
[ContactID] =>
[Amount] => 0
[CancelAmount] => 0
[OpenAmount] => 0
[Narration] => Cheque Received
[CreatedBy] => 229
[ModifiedBy] => 229
[CreatedDate] => 2014-06-03 00:00:00
[ModifiedDate] => 2014-06-03 00:00:00
[Status] => 1
[RevisionNumber] => 1
[RowState] =>
[tmpInstrumentDate] =>
)
[1] => Array
(
[LineNo] => 0
[RowState] => 436
[TXNID] => 0
[BranchID] => 1
[ContactID] =>
[AccountID] => 68
[Narration] => Cheque Received
[Amount] => 0
[RevisionNumber] => 1
[LineType_072] => 460
[CancelAmount] => 0
[OpenAmount] => 0
[Status] => 1
)
)
[OpeningBankStatement] => Array
(
[ObjectType] => 131
[TXNSeries] => 1
[TXNNo] => 12345
[TXNName] => bbnm
[TXNDate] => 03-06-2014
[CompanyID] => 1
[AccountID] => 68
[ExecutiveID] => 805
[Narration] => Cheque Received
[ReferenceNo] =>
[ParentObjectType] => 84
[ParentTXNID] => 1
[CancelledBy] => 1
[CancelledDate] => 2014-02-02
[CancellationRemarks] => hfg
[Status] => 1
[RevisionNumber] => 1
)
)
By any dyanamic model association or callback method it solve? suggest solution.