mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Change Exception message
This commit is contained in:
@@ -1650,8 +1650,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/relati
|
||||
\strtolower($attribute->getAttribute('options')['twoWayKey']) === \strtolower($twoWayKey) &&
|
||||
$attribute->getAttribute('options')['relatedCollection'] === $relatedCollection->getId()
|
||||
) {
|
||||
// Currently, we always throw an Exception even when, We do not want to change $twoWayKsy on $twoWayKeyNull
|
||||
throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS);
|
||||
throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS, 'Creating more than one "manyToMany" relationship on the same collection is currently not permitted.');
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user