Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
typly update API: replace with isImplementationOf
Browse files Browse the repository at this point in the history
  • Loading branch information
evlach committed Dec 1, 2015
1 parent caa590a commit 8cadab1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = class Entity {
{
obj[newKey] = this[key];
}
else if (typly.isInstanceOf(property, Entity))
else if (typly.isImplementationOf(property, Entity))
{
obj[newKey] = property;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = class MetaModel {
}
if(this.entityClass)
{
if (typly.isInstanceOf(entity, this.entityClass) === false)
if (typly.isImplementationOf(entity, this.entityClass) === false)
{
throw new RangeError("row cannot be prepared, unexpected entity class: " + entity.constructor.name);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/PersistenceUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = class PersistenceUtils {
typly.assertNotNull(value);
if (typly.isObject(value))
{
if (typly.isInstanceOf(value, TimeUuid) )
if (typly.isImplementationOf(value, TimeUuid) )
{
return value;
}
Expand Down

0 comments on commit 8cadab1

Please sign in to comment.