We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186ece7 commit f5a28e2Copy full SHA for f5a28e2
system/Database/BaseConnection.php
@@ -366,16 +366,17 @@ abstract class BaseConnection implements ConnectionInterface
366
*/
367
public function __construct(array $params)
368
{
369
+ if (isset($params['dateFormat'])) {
370
+ $this->dateFormat = array_merge($this->dateFormat, $params['dateFormat']);
371
+ unset($params['dateFormat']);
372
+ }
373
+
374
foreach ($params as $key => $value) {
375
if (property_exists($this, $key)) {
376
$this->{$key} = $value;
377
}
378
379
- if (isset($params['dateFormat'])) {
- $this->dateFormat = array_merge($this->dateFormat, $params['dateFormat']);
- }
-
380
$queryClass = str_replace('Connection', 'Query', static::class);
381
382
if (class_exists($queryClass)) {
0 commit comments