Skip to content

Commit

Permalink
[7-14-pre] Concertエンティティをコマンドで作成
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent d3e6e66 commit 4628c2e
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 0 deletions.
159 changes: 159 additions & 0 deletions src/AppBundle/Entity/Concert.php
@@ -0,0 +1,159 @@
<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
* Concert
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="AppBundle\Entity\ConcertRepository")
*/
class Concert
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;

/**
* @var \DateTime
*
* @ORM\Column(name="date", type="date")
*/
private $date;

/**
* @var \DateTime
*
* @ORM\Column(name="time", type="time")
*/
private $time;

/**
* @var string
*
* @ORM\Column(name="place", type="string", length=100)
*/
private $place;

/**
* @var boolean
*
* @ORM\Column(name="available", type="boolean")
*/
private $available;


/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}

/**
* Set date
*
* @param \DateTime $date
*
* @return Concert
*/
public function setDate($date)
{
$this->date = $date;

return $this;
}

/**
* Get date
*
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}

/**
* Set time
*
* @param \DateTime $time
*
* @return Concert
*/
public function setTime($time)
{
$this->time = $time;

return $this;
}

/**
* Get time
*
* @return \DateTime
*/
public function getTime()
{
return $this->time;
}

/**
* Set place
*
* @param string $place
*
* @return Concert
*/
public function setPlace($place)
{
$this->place = $place;

return $this;
}

/**
* Get place
*
* @return string
*/
public function getPlace()
{
return $this->place;
}

/**
* Set available
*
* @param boolean $available
*
* @return Concert
*/
public function setAvailable($available)
{
$this->available = $available;

return $this;
}

/**
* Get available
*
* @return boolean
*/
public function getAvailable()
{
return $this->available;
}
}

13 changes: 13 additions & 0 deletions src/AppBundle/Entity/ConcertRepository.php
@@ -0,0 +1,13 @@
<?php

namespace AppBundle\Entity;

/**
* ConcertRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ConcertRepository extends \Doctrine\ORM\EntityRepository
{
}

0 comments on commit 4628c2e

Please sign in to comment.