Commit 9f629131 by David Muzi

Fix type for defaultAddress on Customer

parent b4a371dd
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="verifiedEmail" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="verifiedEmail" optional="YES" attributeType="Boolean" syncable="YES"/>
<relationship name="addresses" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Address" inverseName="customer" inverseEntity="Address" syncable="YES"/> <relationship name="addresses" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Address" inverseName="customer" inverseEntity="Address" syncable="YES"/>
<relationship name="defaultAddres" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Address" syncable="YES"/> <relationship name="defaultAddress" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Address" syncable="YES"/>
</entity> </entity>
<entity name="Discount" representedClassName="BUYDiscount" syncable="YES"> <entity name="Discount" representedClassName="BUYDiscount" syncable="YES">
<attribute name="amount" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"> <attribute name="amount" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES">
......
...@@ -52,7 +52,7 @@ extern const struct BUYCustomerAttributes { ...@@ -52,7 +52,7 @@ extern const struct BUYCustomerAttributes {
extern const struct BUYCustomerRelationships { extern const struct BUYCustomerRelationships {
__unsafe_unretained NSString *addresses; __unsafe_unretained NSString *addresses;
__unsafe_unretained NSString *defaultAddres; __unsafe_unretained NSString *defaultAddress;
} BUYCustomerRelationships; } BUYCustomerRelationships;
@class BUYAddress; @class BUYAddress;
...@@ -134,7 +134,7 @@ extern const struct BUYCustomerRelationships { ...@@ -134,7 +134,7 @@ extern const struct BUYCustomerRelationships {
@property (nonatomic, strong) NSSet *addresses; @property (nonatomic, strong) NSSet *addresses;
- (NSMutableSet *)addressesSet; - (NSMutableSet *)addressesSet;
@property (nonatomic, strong) BUYAddress *defaultAddres; @property (nonatomic, strong) BUYAddress *defaultAddress;
@end @end
...@@ -198,7 +198,7 @@ extern const struct BUYCustomerRelationships { ...@@ -198,7 +198,7 @@ extern const struct BUYCustomerRelationships {
- (NSMutableSet *)primitiveAddresses; - (NSMutableSet *)primitiveAddresses;
- (void)setPrimitiveAddresses:(NSMutableSet *)value; - (void)setPrimitiveAddresses:(NSMutableSet *)value;
- (BUYAddress *)primitiveDefaultAddres; - (BUYAddress *)primitiveDefaultAddress;
- (void)setPrimitiveDefaultAddres:(BUYAddress *)value; - (void)setPrimitiveDefaultAddress:(BUYAddress *)value;
@end @end
...@@ -50,7 +50,7 @@ const struct BUYCustomerAttributes BUYCustomerAttributes = { ...@@ -50,7 +50,7 @@ const struct BUYCustomerAttributes BUYCustomerAttributes = {
const struct BUYCustomerRelationships BUYCustomerRelationships = { const struct BUYCustomerRelationships BUYCustomerRelationships = {
.addresses = @"addresses", .addresses = @"addresses",
.defaultAddres = @"defaultAddres", .defaultAddress = @"defaultAddress",
}; };
@implementation _BUYCustomer @implementation _BUYCustomer
...@@ -198,7 +198,7 @@ const struct BUYCustomerRelationships BUYCustomerRelationships = { ...@@ -198,7 +198,7 @@ const struct BUYCustomerRelationships BUYCustomerRelationships = {
} }
#if defined CORE_DATA_PERSISTENCE #if defined CORE_DATA_PERSISTENCE
@dynamic defaultAddres; @dynamic defaultAddress;
#endif #endif
@end @end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment