<?php/** * Created by PhpStorm. * User: lisavandaele * Date: 30/01/15 * Time: 12:53 */namespace Notaris\AdminBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="AssetVideoPathRepository") * @ORM\Table(name="asset_video_path") */class AssetVideoPath { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\Asset", inversedBy="assetVideoPaths") * @ORM\JoinColumn(name="asset_id", referencedColumnName="id", onDelete="CASCADE") */ private $asset; /** * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\VideoPath") * @ORM\JoinColumn(name="video_path_id", referencedColumnName="id", onDelete="CASCADE") */ private $videoPath; /** * @var integer * * @ORM\Column(type="integer") */ private $position = 0; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set position * * @param integer $position * @return AssetVideoPath */ public function setPosition($position) { $this->position = $position; return $this; } /** * Get position * * @return integer */ public function getPosition() { return $this->position; } /** * Set asset * * @param \Notaris\AdminBundle\Entity\Asset $asset * @return AssetVideoPath */ public function setAsset(\Notaris\AdminBundle\Entity\Asset $asset = null) { $this->asset = $asset; return $this; } /** * Get asset * * @return \Notaris\AdminBundle\Entity\Asset */ public function getAsset() { return $this->asset; } /** * Set videoPath * * @param \Notaris\AdminBundle\Entity\VideoPath $videoPath * @return AssetVideoPath */ public function setVideoPath(\Notaris\AdminBundle\Entity\VideoPath $videoPath = null) { $this->videoPath = $videoPath; return $this; } /** * Get videoPath * * @return \Notaris\AdminBundle\Entity\VideoPath */ public function getVideoPath() { return $this->videoPath; }}