mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Fix morph relation
This commit is contained in:
parent
6403df2960
commit
b5f05e20a4
@ -185,10 +185,12 @@ module.exports = {
|
||||
case 'oneWay':
|
||||
case 'oneToOne':
|
||||
case 'manyToOne':
|
||||
case 'oneToManyMorph':
|
||||
entry[association.alias] = null;
|
||||
break;
|
||||
case 'oneToMany':
|
||||
case 'manyToMany':
|
||||
case 'manyToManyMorph':
|
||||
entry[association.alias] = [];
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user