mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
relatedCollection
This commit is contained in:
@@ -517,11 +517,18 @@ class Deletes extends Action
|
||||
|
||||
$junctions = [];
|
||||
foreach ($relationships as $relationship) {
|
||||
$relatedCollection = $relationship->getAttribute('options')['relatedCollection'];
|
||||
var_dump("many2many");
|
||||
var_dump("relatedCollection");
|
||||
var_dump($collection->getInternalId());
|
||||
var_dump($relatedCollection->getInternalId());
|
||||
var_dump($relationship);
|
||||
$x = "_{$relatedCollection->getInternalId()}_{$collection->getInternalId()}";
|
||||
var_dump($x);
|
||||
}
|
||||
|
||||
$junctions = [];
|
||||
|
||||
if ($dsn->getHost() !== System::getEnv('_APP_DATABASE_SHARED_TABLES', '') || !\in_array($collection->getId(), $projectCollectionIds)) {
|
||||
$dbForProject->deleteCollection($collection->getId());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user