hi want to insert timestamp value into my database but i dont want to do that with timestamp behaviour,coz i have no idea how to do that with timestamp behaviour
here is my code
my user model
public function createuser(){
$connection = \Yii::$app->db;
$connection->createCommand()->batchInsert('user', ['name', 'class','creation','modified'], [
['Avi', 'Application of arts','',''],
])->execute();
}
i have problem with creation field,now i m inserting blank value,i want to insert that also but how i do ,i need to do with batchinsert command,in my model timestamp behaviour i have but that called beforeinsert when model save
i want save timestamp value in user table using createcommand()->batchinsert
help me plz