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', {
|
Picture.belongsTo('owner', {
|
||||||
idName: 'username',
|
idName: 'username',
|
||||||
polymorphic: {
|
polymorphic: {
|
||||||
idType: String,
|
idType: Author.definition.properties.username.type,
|
||||||
foreignKey: 'oid',
|
foreignKey: 'oid',
|
||||||
discriminator: 'type'
|
discriminator: 'type'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue