Change NSManagedObject.entityName class var from public to open to allow clients of the library to alter the property entity name, if necessary.
Sometimes, providing a class name that differs from the entity's name in .xcdatamodeld is needed to avoid clashes with existing symbols in code. Allowing overriding of this property permits adapting such changes to SugarRecord, as well.
Solution
Describe the solution you came up with and the reasons that led you to that solution. If you thought about other solutions don't forget about mentioning them.
Implementation
[x] Simply alter public class var entityName: String to open class var entityName:String in NSManagedObject.swift
GIF
Relevant: me furiously coding the seemingly endless diff for this change. No PoweGloves survived in the making of this PR.
…ion to allow overriding in clients of the library
Related issue: Link
Short description
Change
NSManagedObject.entityName
class var frompublic
toopen
to allow clients of the library to alter the property entity name, if necessary.Sometimes, providing a class name that differs from the entity's name in .xcdatamodeld is needed to avoid clashes with existing symbols in code. Allowing overriding of this property permits adapting such changes to SugarRecord, as well.
Solution
Implementation
public class var entityName: String
toopen class var entityName:String
in NSManagedObject.swiftGIF
Relevant: me furiously coding the seemingly endless diff for this change. No PoweGloves survived in the making of this PR.