Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94857ecb46 | |||
| 0f0a3349fb | |||
| 7fb9c3ea05 |
+1
-1
@@ -699,7 +699,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
|||||||
|
|
||||||
$method = $prefix . 'Attribute';
|
$method = $prefix . 'Attribute';
|
||||||
if (method_exists($this, $method)) {
|
if (method_exists($this, $method)) {
|
||||||
$this->_attributes[$name] = $this->{$method} ($value);
|
$this->_attributes[$name] = $this->{$method}($value);
|
||||||
} else {
|
} else {
|
||||||
$this->_attributes[$name] = $value;
|
$this->_attributes[$name] = $value;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
<?php /** @noinspection ALL */
|
<?php
|
||||||
|
/** @noinspection ALL */
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
@@ -189,7 +190,7 @@ class SqlBuilder extends Component
|
|||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
return $keys;
|
return $keys;
|
||||||
}
|
}
|
||||||
if (preg_match('/^[+|-]\s\d+$/', $value)) {
|
if (preg_match('/^[+|-]\s\d+$/', (string)$value)) {
|
||||||
$keys[] = $key . '=' . $key . ' ' . $value;
|
$keys[] = $key . '=' . $key . ' ' . $value;
|
||||||
} else {
|
} else {
|
||||||
$this->query->pushParam($value);
|
$this->query->pushParam($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user