Compare commits

..

No commits in common. "6f558f292322157916fa68db8dcc017891b7538b" and "27d5fd0b08b98f6fda3b8a6682b2dd7c7a692d82" have entirely different histories.

2 changed files with 2 additions and 11 deletions

View File

@ -211,13 +211,8 @@ trait EntityTrait {
$this->{$field['name']} = null;
}
elseif ( $field['type'] === 'array' ) {
if ( is_string($value)) {
$this->{$field['name']} = substr($value, 0, 1) === "a" ? unserialize($value) : json_decode($value, true);
}
elseif ( is_array($value) ) {
$this->{$field['name']} = $value;
}
}
elseif ( EntityField::isScalarType($field['type']) ) {
if ( $field['type'] === 'string' ) {

View File

@ -67,11 +67,7 @@ class Where extends Fragment {
}
return $this->renderSegments([
! $this->parent && ! empty($this->conditionList) ? static::SQL_TOKEN : "",
=======
! $this->parent && ! $skipToken ? static::SQL_TOKEN : "",
>>>>>>> 27d5fd0b08b98f6fda3b8a6682b2dd7c7a692d82
implode(" ", $stack)
]);
}