mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 10:38:30 +00:00
Fix conflict
This commit is contained in:
commit
b541e6cc4f
@ -36,7 +36,7 @@ module.exports = {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Collection undefined try to get the collection based on collectionIdentity
|
// Collection undefined try to get the collection based on collectionIdentity
|
||||||
if (typeof strapi !== 'undefined') {
|
if (typeof strapi !== 'undefined') {
|
||||||
collection = _.get(strapi.bookshelf.collections, collectionIdentity);
|
collection = _.get(strapi, `bookshelf.collections.${collectionIdentity}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Impossible to match collectionIdentity before, try to use idAttribute
|
// Impossible to match collectionIdentity before, try to use idAttribute
|
||||||
|
|||||||
@ -211,6 +211,7 @@ module.exports = {
|
|||||||
switch (association.nature) {
|
switch (association.nature) {
|
||||||
case 'oneToOne':
|
case 'oneToOne':
|
||||||
case 'oneToMany':
|
case 'oneToMany':
|
||||||
|
case 'manyToOne':
|
||||||
return module.exports.update.call(this, params);
|
return module.exports.update.call(this, params);
|
||||||
case 'manyToMany':
|
case 'manyToMany':
|
||||||
return this.forge({
|
return this.forge({
|
||||||
@ -233,6 +234,7 @@ module.exports = {
|
|||||||
switch (association.nature) {
|
switch (association.nature) {
|
||||||
case 'oneToOne':
|
case 'oneToOne':
|
||||||
case 'oneToMany':
|
case 'oneToMany':
|
||||||
|
case 'manyToOne':
|
||||||
return module.exports.update.call(this, params);
|
return module.exports.update.call(this, params);
|
||||||
case 'manyToMany':
|
case 'manyToMany':
|
||||||
return this.forge({
|
return this.forge({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user