inverse only works one way
The inverse property of a variable in an entity only works one way and cannot be set for both ends.
For example:
entity Dog
{
owners -> Set (inverse = Human.dogs)
}entity Human
{
dogs -> Set
}if the dog dies, then the dog should be removed from the human’s dog list, but if the human dies, then the owners list should not contain the human anymore. Currently, this only works one way (dog dies, human.dogs is updated), but not the other way (human dies, dog.owners is updated).
Submitted by koen on 19 March 2010 at 15:04
Log in to post comments