Fix the idType so that it works with both MongoDB and RDBs

This commit is contained in:
Raymond Feng 2015-02-20 16:39:48 -08:00
parent 841f2d8f14
commit 195752eaad
1 changed files with 1 additions and 1 deletions

View File

@ -1007,7 +1007,7 @@ describe('relations', function () {
Picture.belongsTo('owner', {
idName: 'username',
polymorphic: {
idType: String,
idType: Author.definition.properties.username.type,
foreignKey: 'oid',
discriminator: 'type'
}