Skip to content

Commit 2d9d585

Browse files
committed
temporarily disabling the castOnHydrate option from the phalcon model because it breaks the mysql binary and varbinary fields
phalcon/cphalcon#16532
1 parent b9f5d73 commit 2d9d585

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Mvc/Model.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public static function setup(?array $options = null): void
125125
parent::setup(array_merge([
126126
'caseInsensitiveColumnMap' => false,
127127
'castLastInsertIdToInt' => true, // changed from default
128-
'castOnHydrate' => true, // changed from default
128+
// 'castOnHydrate' => true, // changed from default
129+
'castOnHydrate' => false, // problems with binary when true
129130
'columnRenaming' => true,
130131
'disableAssignSetters' => false,
131132
'enableImplicitJoins' => true,

0 commit comments

Comments
 (0)