|
@@ -37,13 +37,6 @@ class MediaVideo
|
|
|
*/
|
|
|
private $identif;
|
|
|
|
|
|
- /**
|
|
|
- * @var \DateTime
|
|
|
- *
|
|
|
- * @ORM\Column(name="date", type="datetime")
|
|
|
- */
|
|
|
- private $date;
|
|
|
-
|
|
|
/**
|
|
|
* @Assert\Regex(
|
|
|
* pattern="#^(http|https)://(www.youtube.com|www.dailymotion.com|vimeo.com)/#",
|
|
@@ -53,30 +46,6 @@ class MediaVideo
|
|
|
*/
|
|
|
private $url;
|
|
|
|
|
|
- /**
|
|
|
- * Constructor
|
|
|
- */
|
|
|
- public function __construct()
|
|
|
- {
|
|
|
- $this->setDate(new \DateTime());
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @return \DateTime
|
|
|
- */
|
|
|
- public function getDate()
|
|
|
- {
|
|
|
- return $this->date;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param \DateTime $date
|
|
|
- */
|
|
|
- public function setDate($date)
|
|
|
- {
|
|
|
- $this->date = $date;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Get id
|
|
|
*
|