for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PiedWeb\CMSBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\MappedSuperclass
* @Vich\Uploadable
* @ORM\HasLifecycleCallbacks
* UniqueEntity({"name"}, message="Ce nom existe déjà.")
*/
class Media implements MediaInterface
{
use IdTrait;
use MediaTrait;
PiedWeb\CMSBundle\Entity\MediaTrait
$previousMimeType
PiedWeb\CMSBundle\Entity\Media
public function __construct()
$this->updatedAt = null !== $this->updatedAt ? $this->updatedAt : new \DateTime();
$this->createdAt = null !== $this->createdAt ? $this->createdAt : new \DateTime();
}