Re: Inheritance and relationships
Re: Inheritance and relationships
- Subject: Re: Inheritance and relationships
- From: Mike Schrag <email@hidden>
- Date: Fri, 8 Aug 2008 23:14:10 -0400
Where can I read up about this one?
Well, right here, my good man! I've always thought that making me
manually set the values of the attributes of my restricting qualifier
when I insert a new instance into an EC was stupid -- the framework
should do that for me.
er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true
If you set this property, ERXGenericRecord will look at your
restricting qualifier and attempt to construct a kvc dictionary that
will make the qualifier true for your object and set it on your object
when it's inserted. This obviously is limited to qualifiers that can
be "made true" (see ERXEOControlUtilities.makeQualifierTrue). For
most people, your restricting qualifier is trivial, anyway
("personType = 5"), so it's not a problem. It's a small thing, but I
remember it being one that tripped me up when I was first learning EOF.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden