Maybe use the fetchRequiredTransactionType instead??
On 2012-07-31, at 12:29 PM, Pascal Robert <prob...@macti.ca> wrote: > I have a weird problem or maybe I'm just stupid. In awakeFromInsertion, I > want to set a relationship (transactionType) on all new Transaction EOs. So I > did this: > > @Override > public void awakeFromInsertion(EOEditingContext editingContext) { > super.awakeFromInsertion(editingContext); > setQuantity(1); > TransactionType standardType = > TransactionType.fetchTransactionType(editingContext, > TransactionType.NAME_KEY, TransactionType.STANDARD_TYPE); > setTransactionTypeRelationship(standardType); > } > > The problem? When setTransactionTypeRelationship is called, it fetches ALL > transactions of the "Standard" type, returning 50854 objects. Why is that > happening? > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to programming...@mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com