Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
Lachlan Deck <[email protected]> Thu, 20 Nov 2008 06:53:02 +1100
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 20/11/2008, at 5:05 AM, Carl E. Lindberg wrote: > On Nov 17, 2008, at 9:01 PM, Chuck Hill wrote: > >> >> On Nov 17, 2008, at 4:57 PM, Carl E. Lindberg wrote: >>> >>> On Nov 17, 2008, at 3:53 PM, Mike Schrag wrote: >>> >>>>> On a related note, w(hy)tf is there not a direct way to turn a >>>>> raw row into a snapshot cache entry + fault? >>> >>> EOUtilities.faultWithPrimaryKey() ? Or maybe that refetches the >>> row. Does EOUtilities.objectFromRawRow() ? >> >> All objectWithRawRow does is to extract the PK and then calls >> faultWithPrimaryKey() (IIRC). So if the EO has not been fetched >> and cached, this goes back to the database. > > Really? No, it calls ec.faultForRawRow(row, entityName) which calls ec.faultForRawRow(row, entityName, this) which calls objectstore.faultForRawRow(row, entityName, ec)... with regards, -- Lachlan Deck