problem with ERTag and inheritance
problem with ERTag and inheritance
- Subject: problem with ERTag and inheritance
- From: Tim Worman <email@hidden>
- Date: Mon, 30 Jul 2012 16:27:14 -0700
Anyone with ERTag mojo:
Assuming I have a parent entity "Animal" and sub-entities that inherit from it, "Cat" and "Dog" - I can't search for all "Animal" with the tag "fur".
It seems that if I tag a Cat EO with "fur" and Dog EO with "fur" the updates for those tags go to the tables cattag and dogtag, respectively. I've made the parent entity "Animal" a taggable so that I can use the recommend ERTag searching here:
http://wiki.wocommunity.org/display/documentation/ERTaggable
But if I search for all Animal with the tag "fur" it appears to perform a query against the animaltag table - which doesn't get updated if I tag sub-entities. Hence, no results.
Can anyone recommend a best practice for this situation? In full disclosure I did not use migrations to create the ERTag setup - since I don't, uh, use migrations. I'm sure that's awful. :-)
Tim
UCLA GSE&IS
_______________________________________________
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