J
это называется datetime
Size: a a a
J
Д
'value'=>new Expression('NOW()')
Invalid Configuration – yii\base\InvalidConfigException
Unsupported configuration type: object
Как починить эту ошибку ?[
'class' => TimestampBehavior::class,
'attributes' => [
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
],
'value' => new Expression('NOW()'),
],
Д
Д
NO
J
Д
J
Д
NO
J
J
Д
Д
NO
J
[
'class' => TimestampBehavior::class,
'attributes' => [
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
],
'value' => new Expression('NOW()'),
],
Object configuration must be an array containing a "class" or "__class" element.ошибка такая стало
J
* @property int $id
* @property string $created_at
* @property string $updated_at
* @property int $qty
* @property float $sum
* @property string $status
* @property string $name
* @property string $email
* @property string $phone
* @property string $address
NO
Д
Object configuration must be an array containing a "class" or "__class" element.ошибка такая стало
NO