Re: Inheritance and relationships
Re: Inheritance and relationships
- Subject: Re: Inheritance and relationships
- From: Lachlan Deck <email@hidden>
- Date: Sat, 9 Aug 2008 19:29:06 +1000
On 09/08/2008, at 1:14 PM, Mike Schrag wrote:
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
Ah. Yeah, there ought to be an option in the model for the simple cases.
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.
Thanks.
with regards,
--
Lachlan Deck
_______________________________________________
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