Fix the idType so that it works with both MongoDB and RDBs
This commit is contained in:
parent
841f2d8f14
commit
195752eaad
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue