[Persistence] Report space by identifier

This commit is contained in:
Victor Woeltjen 2015-11-05 17:26:48 -08:00
parent 99f3b986b6
commit 822b4ae96f

View File

@ -130,6 +130,10 @@ define(
* be used to persist this object
*/
PersistenceCapability.prototype.getSpace = function () {
if (this.domainObject.getId().indexOf(":") !== -1) {
return this.domainObject.getId().split(":")[0];
}
return this.space;
};