[baseten-users] Missing relationships

Erik Aderstedt erik at aderstedt.se
Thu Apr 30 16:39:47 EEST 2009


Hi!

I've have a model with three entities and 2 one-to-many relationships  
between them. After importing this model using BaseTen Assistant and  
running Introspection I find that no relationships are available.  
Debugging using Introspection.m I find that  all of the entities report

[entity hasCapability: kBXEntityCapabilityRelationships] == YES

but there are simply no relationships found in the database. Using \d  
<table> yields several BaseTen triggers and whatnot on both the "many"  
and the "one" end, and a foreign key constraint

"customer" FOREIGN KEY (customer_id) REFERENCES "Customer"(id) ON  
UPDATE CASCADE ON DELETE SET NULL

on the "many" end ("Customer" is the "one" end). As far as I can tell  
things seem to be set up correctly, but BaseTen isn't automatically  
finding these relationships at startup. Key-path traversal does not  
work, for example.

Any suggestions?

Thanks in advance,
Erik Aderstedt





More information about the baseten-users mailing list