Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3e6e66
commit 4628c2e
Showing
2 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
{ | ||
} |