Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed May 13, 2024
1 parent b05da3e commit 5188abd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,6 @@ public function createDocument(string $collection, Document $document): Document
if ($this->resolveRelationships) {
$document = $this->silent(fn () => $this->populateDocumentRelationships($collection, $document));
}

$document = $this->decode($collection, $document);

$this->trigger(self::EVENT_DOCUMENT_CREATE, $document);
Expand Down Expand Up @@ -3137,12 +3136,6 @@ public function createDocuments(string $collection, array $documents, int $batch
$time = DateTime::now();

foreach ($documents as $key => $document) {
if ($this->adapter->getSharedTables()) {
if (empty($document->getAttribute('$tenant'))) {
//throw new DatabaseException('Missing tenant. Tenant must be included when isolation mode is set to "table".');
}
}

$createdAt = $document->getCreatedAt();
$updatedAt = $document->getUpdatedAt();

Expand Down Expand Up @@ -3699,10 +3692,6 @@ public function updateDocuments(string $collection, array $documents, int $batch
$collection = $this->silent(fn () => $this->getCollection($collection));

foreach ($documents as $document) {
if ($this->adapter->getSharedTables() && empty($document->getAttribute('$tenant'))) {
//throw new DatabaseException('Missing tenant. Tenant must be included when isolation mode is set to "table".');
}

if (!$document->getId()) {
throw new DatabaseException('Must define $id attribute for each document');
}
Expand Down

0 comments on commit 5188abd

Please sign in to comment.