<?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;/** * @ORM\Entity(repositoryClass="AssetRepository") * @ORM\Table(name="asset") */class Asset { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\OneToMany(targetEntity="AssetImage", mappedBy="asset") * @ORM\OrderBy({"position" = "asc"}) */ protected $assetImages; /** * @ORM\OneToMany(targetEntity="AssetAttachment", mappedBy="asset") * @ORM\OrderBy({"position" = "asc"}) */ protected $assetAttachments; /** * @ORM\OneToMany(targetEntity="AssetLink", mappedBy="asset") * @ORM\OrderBy({"position" = "asc"}) */ protected $assetLinks; /** * @ORM\OneToMany(targetEntity="AssetVideoPath", mappedBy="asset") * @ORM\OrderBy({"position" = "asc"}) */ protected $assetVideoPaths; /** * Constructor */ public function __construct() { } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Add assetImages * * @param \Notaris\AdminBundle\Entity\AssetImage $assetImages * @return Asset */ public function addAssetImage(\Notaris\AdminBundle\Entity\AssetImage $assetImages) { $this->assetImages[] = $assetImages; return $this; } /** * Remove assetImages * * @param \Notaris\AdminBundle\Entity\AssetImage $assetImages */ public function removeAssetImage(\Notaris\AdminBundle\Entity\AssetImage $assetImages) { $this->assetImages->removeElement($assetImages); } /** * Get assetImages * * @return \Doctrine\Common\Collections\Collection */ public function getAssetImages() { return $this->assetImages; } /** * Add assetAttachments * * @param \Notaris\AdminBundle\Entity\AssetAttachment $assetAttachments * @return Asset */ public function addAssetAttachment(\Notaris\AdminBundle\Entity\AssetAttachment $assetAttachments) { $this->assetAttachments[] = $assetAttachments; return $this; } /** * Remove assetAttachments * * @param \Notaris\AdminBundle\Entity\AssetAttachment $assetAttachments */ public function removeAssetAttachment(\Notaris\AdminBundle\Entity\AssetAttachment $assetAttachments) { $this->assetAttachments->removeElement($assetAttachments); } /** * Get assetAttachments * * @return \Doctrine\Common\Collections\Collection */ public function getAssetAttachments() { return $this->assetAttachments; } /** * Add assetLinks * * @param \Notaris\AdminBundle\Entity\AssetLink $assetLinks * @return Asset */ public function addAssetLink(\Notaris\AdminBundle\Entity\AssetLink $assetLinks) { $this->assetLinks[] = $assetLinks; return $this; } /** * Remove assetLinks * * @param \Notaris\AdminBundle\Entity\AssetLink $assetLinks */ public function removeAssetLink(\Notaris\AdminBundle\Entity\AssetLink $assetLinks) { $this->assetLinks->removeElement($assetLinks); } /** * Get assetLinks * * @return \Doctrine\Common\Collections\Collection */ public function getAssetLinks() { return $this->assetLinks; } /** * Add assetVideoPaths * * @param \Notaris\AdminBundle\Entity\AssetVideoPath $assetVideoPaths * @return Asset */ public function addAssetVideoPath(\Notaris\AdminBundle\Entity\AssetVideoPath $assetVideoPaths) { $this->assetVideoPaths[] = $assetVideoPaths; return $this; } /** * Remove assetVideoPaths * * @param \Notaris\AdminBundle\Entity\AssetVideoPath $assetVideoPaths */ public function removeAssetVideoPath(\Notaris\AdminBundle\Entity\AssetVideoPath $assetVideoPaths) { $this->assetVideoPaths->removeElement($assetVideoPaths); } /** * Get assetVideoPaths * * @return \Doctrine\Common\Collections\Collection */ public function getAssetVideoPaths() { return $this->assetVideoPaths; }}