I'm writing an app in core data and I need to store an address which includes a state. Is there a concept of foreign key in core data (similar to sql) that will store a reference to a state entity (and enforce it)?
Now I know that Core data has relationships but they are supposed to be 2 way. This does not make much sense in this case.
Thanks