{"action":"opened","issue":{"url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1063","labels_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1063/comments","events_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1063/events","html_url":"https://github.com/magicalpanda/MagicalRecord/issues/1063","id":101766497,"number":1063,"title":"Release 3.0 & Swift: NSFetchRequest could not locate an NSEntityDescription for entity name <<MODULENAME>>.MyEntity","user":{"login":"csotiriou","id":1228484,"avatar_url":"https://avatars.githubusercontent.com/u/1228484?v=3","gravatar_id":"","url":"https://api.github.com/users/csotiriou","html_url":"https://github.com/csotiriou","followers_url":"https://api.github.com/users/csotiriou/followers","following_url":"https://api.github.com/users/csotiriou/following{/other_user}","gists_url":"https://api.github.com/users/csotiriou/gists{/gist_id}","starred_url":"https://api.github.com/users/csotiriou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csotiriou/subscriptions","organizations_url":"https://api.github.com/users/csotiriou/orgs","repos_url":"https://api.github.com/users/csotiriou/repos","events_url":"https://api.github.com/users/csotiriou/events{/privacy}","received_events_url":"https://api.github.com/users/csotiriou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T22:48:50Z","updated_at":"2015-08-18T22:48:50Z","closed_at":null,"body":"Hello,\r\n\r\nI noticed that in branch 3.0, a fix that was done in 2.x concerning name prefixes of entities in Swift has been removed from NSManagedObject, in ```-MR_entityName```\r\n\r\nOLD (v 2.0) - Working:\r\n```\r\n+ (NSString *) MR_entityName;\r\n{\r\n    NSString *entityName;\r\n\r\n    if ([self respondsToSelector:@selector(entityName)])\r\n    {\r\n        entityName = [self performSelector:@selector(entityName)];\r\n    }\r\n\r\n    if ([entityName length] == 0)\r\n    {\r\n        // Remove module prefix from Swift subclasses\r\n        entityName = [NSStringFromClass(self) componentsSeparatedByString:@\".\"].lastObject;\r\n    }\r\n\r\n    return entityName;\r\n}\r\n```\r\n\r\nNEW (v 3.0) - Not working\r\n\r\n```\r\n+ (NSString *) MR_entityName;\r\n{\r\n    NSString *entityName;\r\n\r\n    if ([self respondsToSelector:@selector(entityName)])\r\n    {\r\n#pragma clang diagnostic push\r\n#pragma clang diagnostic ignored \"-Wselector\"\r\n        entityName = [self performSelector:@selector(entityName)];\r\n#pragma clang diagnostic pop\r\n    }\r\n\r\n    if ([entityName length] == 0)\r\n    {\r\n        entityName = NSStringFromClass(self);\r\n    }\r\n\r\n    return entityName;\r\n}\r\n```\r\n\r\nThe reason it doesn't work for me in Swift, is because it doesn' handle the entity names containing the Module name in the class. Is there any reason why this fix didn't make it from version 2 to version 3? Even if Xcode 7 has made changes to Core Data entity names, having your core data entities in a shared embedded framework (which is my case) still prefixes the names of the classes, so in my opinion, the fix should be preserved from version 2 to version 3.\r\n\r\nIs it valid to transfer it, or there is a reason why this was omitted in 3.0?"}}