Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
"Carl E. Lindberg" <[email protected]> Wed, 19 Nov 2008 13:05:00 -0500
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
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? Then it would just be a pass-through, since you can pass a full raw row to faultWithPrimaryKey() (it only requires that the PK attributes are in the dictionary; no need to extract them first). -Carl