partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

TempUploadedFile.php (399B)


      1 <?php
      2 
      3 namespace PartKeepr\UploadedFileBundle\Entity;
      4 
      5 use Doctrine\ORM\Mapping as ORM;
      6 
      7 /**
      8  * Represents a temporary file. Temporary files are used when
      9  * a user uploaded a file, but not attached it to an entity.
     10  *
     11  * @ORM\Entity
     12  */
     13 class TempUploadedFile extends UploadedFile
     14 {
     15     public function __construct()
     16     {
     17         parent::__construct();
     18         $this->setType('tempfile');
     19     }
     20 }