mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
mention future support for join columns
This commit is contained in:
parent
2faed39cbb
commit
8241f4ae3a
@ -1202,11 +1202,14 @@ const createEntityManager = (db) => {
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: add support for cloning polymorphic relations
|
||||
if (attribute.joinColumn) {
|
||||
// TODO: add support for cloning oneToMany relations on the owning side
|
||||
return;
|
||||
}
|
||||
|
||||
if (!attribute.joinTable) {
|
||||
throw new DatabaseError(
|
||||
`Cloning relations of type ${attribute.relation} is not supported`
|
||||
);
|
||||
// TODO: add support for cloning polymorphic relations
|
||||
return;
|
||||
}
|
||||
|
||||
if (isOneToAny(attribute) && isBidirectional(attribute)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user