Forums BaseTen

Adding related record with the Add: method

Subscribe to Adding related record with the Add: method 2 post(s), 2 voice(s)

 
Avatar Michele Longhi 5 post(s)

Hi

Using a BXSynchronizedArrayController that contains records of a “one to many” realation (filled in a content set), the Add: method doesn’t automatically set the foreign key to the id of the master record. It is necessary therefore to create custom code.
Would be nice if the Add: method could set the value automatically, as Core Data does.

Best regards

 
Avatar Tuukka Norri Administrator 25 post(s)

Sorry about taking time with this. You’re correct, the array controller could check if its key path is for a relationship and add the object to the set. I can’t say for certain, how soon we’ll address this issue, but I’ll open a case for it anyway.

Forums BaseTen