discuss.answer
See if the table actually exists. If not, you need to call createObjectContainer() (just once), not addPackage() -- or create the table manually.
Have you looked at ClassExtender? It takes most of the work out of the process by doing it for you.
I just tried ClassExtender, but it looks like it only adds fields to the existing "Document" class? I need to create several different CRCs, in addition to the base Document. Is ClassExtender capable of that?
However, being able to look at your examples helped me find my error: in my schema I had a table defined for the object extending modResource. So thanks!
Quote from: smaddock at Sep 11, 2014, 10:44 AMI just tried ClassExtender, but it looks like it only adds fields to the existing "Document" class? I need to create several different CRCs, in addition to the base Document. Is ClassExtender capable of that?
ClassExtender has a fairly extensive set of properties -- some in the form and some you'll see if you look at the code. I think you might be able to do what you want by setting them but I've never tried it.