Skip to content

Commit 94eb5a8

Browse files
committed
Update DBClassWriter.php
1 parent a0070da commit 94eb5a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webfiori/framework/writers/DBClassWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function writeClassBody() {
238238
], 2);
239239
}
240240
$this->append([
241-
"\$this->register('".str_replace("\\", "\\\\", $this->getPath())."');",
241+
"\$this->register('".str_replace("\\", "\\\\", $this->getNamespace())."');",
242242
], 2);
243243
$this->append('}', 1);
244244

@@ -353,7 +353,7 @@ private function writeColUpdate(Column $colObj, $key) {
353353
$this->append($paramsComment, 1);
354354

355355
if (strpos($phpType, '|null') !== false) {
356-
$phpType = substr($phpType,0, strlen($phpType) - strlen('|null'));
356+
$phpType = '?'.substr($phpType,0, strlen($phpType) - strlen('|null'));
357357
}
358358
$this->append([
359359
" */",

0 commit comments

Comments
 (0)