Entity/Archivo.php
public function setFile(UploadedFile $file = null)
    {
        $this->file = $file;
        $this->setFechaPublicacion(new \DateTime());
    }
public function setFile(UploadedFile $file = null)
    {
        $this->file = $file;
        $this->setFechaPublicacion(new \DateTime());
    }
public function setFile ( UploadedFile $ file = null ) { $ this -> file = $ file ; $ this -> setFechaPublicacion ( new \ DateTime ( ) ) ; }
Sets file

@param UploadedFile $file
Sets file