Hello,
i get id zero after use model->save()
example :
$photos = new Photos();
$photos->name = $sGenerateName;
$photos->size = $file->getSize();
$photos->save() ;
var_dump($photos->id) ; // i get string '0' (length=1)
Hello,
i get id zero after use model->save()
example :
$photos = new Photos();
$photos->name = $sGenerateName;
$photos->size = $file->getSize();
$photos->save() ;
var_dump($photos->id) ; // i get string '0' (length=1)