As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I am trying to delete an Entity using the removeId method as shown in the code below:
@IBAction fund deleteEvent(_ sender:Any){
let id = self.eventId
eventStore.removeById(id!){ event, error in
if let event = event {
print("Deleted Event")
}else{
print("Could not delete Event")
}
}
}
I set eventStore as follows in my viewController
let eventStore = DataStore<Event>.collection(.sync)
However I get the error :
(PersistableIdKey) is missing in the propertyMapping() method. Please call super.propertyMapping() inside your propertyMapping() method
Looking at the image below, you do see that I call super.properyMapping
(I have the latest version of Kinvey SDK installed)
Thanks for your time,
Best Answer
P
Pranav J
said
over 5 years ago
Hello,
PersistableIdKey - Key to map the _id column in your Persistable implementation class. "super.propertyMapping(map)"maps the "_id", "_kmd" and "_acl" properties. This is weird that even after including it inside the class definition, you are getting an error. Can you please share KID of your app and the SDK version that you are using?
Can you please try manually entering the 'eventStore.removeById' method as mentioned here and see if it works?
What is eventId? From where you are getting this information?
I have tried both the methods for deleting an entity and I am not seeing any issues.
Thanks,
Pranav
1 Comment
P
Pranav J
said
over 5 years ago
Answer
Hello,
PersistableIdKey - Key to map the _id column in your Persistable implementation class. "super.propertyMapping(map)"maps the "_id", "_kmd" and "_acl" properties. This is weird that even after including it inside the class definition, you are getting an error. Can you please share KID of your app and the SDK version that you are using?
Can you please try manually entering the 'eventStore.removeById' method as mentioned here and see if it works?
What is eventId? From where you are getting this information?
I have tried both the methods for deleting an entity and I am not seeing any issues.
natejasper
Hi all,
I am trying to delete an Entity using the removeId method as shown in the code below:
@IBAction fund deleteEvent(_ sender:Any){
let id = self.eventId
eventStore.removeById(id!){ event, error in
if let event = event {
print("Deleted Event")
}else{
print("Could not delete Event")
}
}
}
I set eventStore as follows in my viewController
let eventStore = DataStore<Event>.collection(.sync)
However I get the error :
(PersistableIdKey) is missing in the propertyMapping() method. Please call super.propertyMapping() inside your propertyMapping() method
Looking at the image below, you do see that I call super.properyMapping
(I have the latest version of Kinvey SDK installed)
Thanks for your time,
Hello,
_id
column in your Persistable implementation class. "super.propertyMapping(map)"maps the "_id", "_kmd" and "_acl" properties
. This is weird that even after including it inside the class definition, you are getting an error. Can you please share KID of your app and the SDK version that you are using?I have tried both the methods for deleting an entity and I am not seeing any issues.
Thanks,
Pranav
Pranav J
Hello,
_id
column in your Persistable implementation class. "super.propertyMapping(map)"maps the "_id", "_kmd" and "_acl" properties
. This is weird that even after including it inside the class definition, you are getting an error. Can you please share KID of your app and the SDK version that you are using?I have tried both the methods for deleting an entity and I am not seeing any issues.
Thanks,
Pranav
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics