Image Entities

This commit is contained in:
R. Eric Wheeler 2017-04-23 12:03:54 -07:00
parent d84ab9412f
commit 828ba828b2
8 changed files with 657 additions and 0 deletions

View File

@ -0,0 +1,128 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Image
*
* @ORM\Table(name="image")
* @ORM\Entity(repositoryClass="Sikofitt\DoughnutWeddingBundle\Repository\ImageRepository")
*/
class Image
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="imageFile", type="string", length=255)
*/
private $imageFile;
/**
* @var string
*
* @ORM\Column(name="imageName", type="string", length=255)
*/
private $imageName;
/**
* @var int
*
* @ORM\Column(name="user", type="integer", nullable=true)
*/
private $user;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set imageFile
*
* @param string $imageFile
*
* @return Image
*/
public function setImageFile($imageFile)
{
$this->imageFile = $imageFile;
return $this;
}
/**
* Get imageFile
*
* @return string
*/
public function getImageFile()
{
return $this->imageFile;
}
/**
* Set imageName
*
* @param string $imageName
*
* @return Image
*/
public function setImageName($imageName)
{
$this->imageName = $imageName;
return $this;
}
/**
* Get imageName
*
* @return string
*/
public function getImageName()
{
return $this->imageName;
}
/**
* Set user
*
* @param integer $user
*
* @return Image
*/
public function setUser($user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return int
*/
public function getUser()
{
return $this->user;
}
}

View File

@ -0,0 +1,128 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ImageCategory
*
* @ORM\Table(name="image_category")
* @ORM\Entity(repositoryClass="Sikofitt\DoughnutWeddingBundle\Repository\ImageCategoryRepository")
*/
class ImageCategory
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="categoryName", type="string", length=255)
*/
private $categoryName;
/**
* @var string
*
* @ORM\Column(name="machineName", type="string", length=255, unique=true)
*/
private $machineName;
/**
* @var int
*
* @ORM\Column(name="image", type="integer")
*/
private $image;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set categoryName
*
* @param string $categoryName
*
* @return ImageCategory
*/
public function setCategoryName($categoryName)
{
$this->categoryName = $categoryName;
return $this;
}
/**
* Get categoryName
*
* @return string
*/
public function getCategoryName()
{
return $this->categoryName;
}
/**
* Set machineName
*
* @param string $machineName
*
* @return ImageCategory
*/
public function setMachineName($machineName)
{
$this->machineName = $machineName;
return $this;
}
/**
* Get machineName
*
* @return string
*/
public function getMachineName()
{
return $this->machineName;
}
/**
* Set image
*
* @param integer $image
*
* @return ImageCategory
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get image
*
* @return int
*/
public function getImage()
{
return $this->image;
}
}

View File

@ -0,0 +1,221 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ImageComment
*
* @ORM\Table(name="image_comment")
* @ORM\Entity(repositoryClass="Sikofitt\DoughnutWeddingBundle\Repository\ImageCommentRepository")
*/
class ImageComment
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="user", type="integer")
*/
private $user;
/**
* @var string
*
* @ORM\Column(name="comment", type="text")
*/
private $comment;
/**
* @var int
*
* @ORM\Column(name="childComments", type="integer", nullable=true)
*/
private $childComments;
/**
* @var \DateTime
*
* @ORM\Column(name="created", type="datetime")
*/
private $created;
/**
* @var int
*
* @ORM\Column(name="image", type="integer")
*/
private $image;
/**
* @var bool
*
* @ORM\Column(name="isChild", type="boolean", nullable=true)
*/
private $isChild;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set user
*
* @param integer $user
*
* @return ImageComment
*/
public function setUser($user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return int
*/
public function getUser()
{
return $this->user;
}
/**
* Set comment
*
* @param string $comment
*
* @return ImageComment
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Set childComments
*
* @param integer $childComments
*
* @return ImageComment
*/
public function setChildComments($childComments)
{
$this->childComments = $childComments;
return $this;
}
/**
* Get childComments
*
* @return int
*/
public function getChildComments()
{
return $this->childComments;
}
/**
* Set created
*
* @param \DateTime $created
*
* @return ImageComment
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set image
*
* @param integer $image
*
* @return ImageComment
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get image
*
* @return int
*/
public function getImage()
{
return $this->image;
}
/**
* Set isChild
*
* @param boolean $isChild
*
* @return ImageComment
*/
public function setIsChild($isChild)
{
$this->isChild = $isChild;
return $this;
}
/**
* Get isChild
*
* @return bool
*/
public function getIsChild()
{
return $this->isChild;
}
}

View File

@ -0,0 +1,128 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ImageTag
*
* @ORM\Table(name="image_tag")
* @ORM\Entity(repositoryClass="Sikofitt\DoughnutWeddingBundle\Repository\ImageTagRepository")
*/
class ImageTag
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="tagName", type="string", length=255)
*/
private $tagName;
/**
* @var string
*
* @ORM\Column(name="machineName", type="string", length=255, unique=true)
*/
private $machineName;
/**
* @var int
*
* @ORM\Column(name="image", type="integer", nullable=true)
*/
private $image;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set tagName
*
* @param string $tagName
*
* @return ImageTag
*/
public function setTagName($tagName)
{
$this->tagName = $tagName;
return $this;
}
/**
* Get tagName
*
* @return string
*/
public function getTagName()
{
return $this->tagName;
}
/**
* Set machineName
*
* @param string $machineName
*
* @return ImageTag
*/
public function setMachineName($machineName)
{
$this->machineName = $machineName;
return $this;
}
/**
* Get machineName
*
* @return string
*/
public function getMachineName()
{
return $this->machineName;
}
/**
* Set image
*
* @param integer $image
*
* @return ImageTag
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get image
*
* @return int
*/
public function getImage()
{
return $this->image;
}
}

View File

@ -0,0 +1,13 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Repository;
/**
* ImageCategoryRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ImageCategoryRepository extends \Doctrine\ORM\EntityRepository
{
}

View File

@ -0,0 +1,13 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Repository;
/**
* ImageCommentRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ImageCommentRepository extends \Doctrine\ORM\EntityRepository
{
}

View File

@ -0,0 +1,13 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Repository;
/**
* ImageRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ImageRepository extends \Doctrine\ORM\EntityRepository
{
}

View File

@ -0,0 +1,13 @@
<?php
namespace Sikofitt\DoughnutWeddingBundle\Repository;
/**
* ImageTagRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ImageTagRepository extends \Doctrine\ORM\EntityRepository
{
}