Fixing a double @interface block
Throwing an exception when the developer forgot to pass a non nil attribute to the method.
When an entity has a super entity, if no 'primaryAttribute' is found, going upwards the hierarchy looking for one.