Why would this happen in a model? I'm breaking inside of a method that
calculates total charges, based on the array of dictionaries where each has
a billing code and an associated charge. BTW, the patient name is
fictitious.
```
*(lldb) **po self.document.properties*
{
"_id" = 8387530937fe51a59365e882fe2b8ff9;
"_rev" = "2-d7f14c03e7226c400e1f56034f1d91c1";
authorizationNumber = "";
charges = (
{
charge = 55;
code = 99211;
},
{
charge = 150;
code = 90836;
}
);
correctedClaim = 0;
dateOfService = 1380524400;
dateSubmitted = "1391384939.515375";
insured = "";
insurerId = edc7d4fee17ca1792d5ecf9254e88b0a;
insurerName = "Kaiser Foundation Health Plan of the Northwest";
patientId = 05acac91de863a80ffb189a3cf7b6612;
patientName = "AISHA T. HOFSTADTER";
policyNumber = 12345678M;
sessionId = 8387530937fe51a59365e882fe12e73b;
status = unpaid;
type = claim;
}
*(lldb) **po self.charges*
nil
```
I have a property in my model:
```
@property (nonatomic, strong) NSArray * charges;
```
I need to iterate the array of charges to calculate the total charges but I
keep getting nil from self.charges in my totalCharges method.
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/998a0e7b-366a-4e48-b511-0e2203a5a258%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.