I have a problem when I use batchInsert() to insert multiple records.
Yii::$app->db->createCommand()->batchInsert($this->model->tableName(), $columns, $rows)->execute()
And I has implemented the TimestampBehavior in my BaseModel
/**
* @inheritdoc
*/
public function behaviors()
{
return [
[
'class' => TimestampBehavior::className(),
'createdAtAttribute' => 'createdAt',
'updatedAtAttribute' => 'updatedAt'
]
];
}
But when I executed then it's not working?