mirror of
https://github.com/appwrite/appwrite
synced 2026-05-20 23:48:23 +00:00
relatedCollection
This commit is contained in:
parent
2b08fb59c3
commit
e000234dbd
1 changed files with 7 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue