Merge pull request #461 from strongloop/feature/fix-tests

Fix the idType so that it works with both MongoDB and RDBs
This commit is contained in:
Raymond Feng 2015-02-20 16:40:17 -08:00
commit 5e0667eca3
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'
}