Skip to content

Commit 5e634a7

Browse files
authored
Merge pull request #764 from utopia-php/casting-support
Get support for casting
2 parents fe7a132 + 53b2324 commit 5e634a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Database/Adapter/Mongo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ public function getAttributeWidth(Document $collection): int
28732873
*/
28742874
public function getSupportForCasting(): bool
28752875
{
2876-
return true;
2876+
return false;
28772877
}
28782878

28792879
/**

src/Database/Adapter/SQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ public function getKeywords(): array
14971497
*/
14981498
public function getSupportForCasting(): bool
14991499
{
1500-
return false;
1500+
return true;
15011501
}
15021502

15031503
public function getSupportForNumericCasting(): bool

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8264,7 +8264,7 @@ public function decode(Document $collection, Document $document, array $selectio
82648264
*/
82658265
public function casting(Document $collection, Document $document): Document
82668266
{
8267-
if ($this->adapter->getSupportForCasting()) {
8267+
if (!$this->adapter->getSupportForCasting()) {
82688268
return $document;
82698269
}
82708270

0 commit comments

Comments
 (0)