Completed the repeating event model.
This commit is contained in:
parent
8f66f58965
commit
881f0a7de2
1 changed files with 56 additions and 2 deletions
|
@ -11,13 +11,67 @@ use Doctrine\ORM\PersistentCollection;
|
||||||
* @ORM\Table(name="repeat_events")
|
* @ORM\Table(name="repeat_events")
|
||||||
* @ORM\Entity
|
* @ORM\Entity
|
||||||
*/
|
*/
|
||||||
class RepeatEvent extends Event
|
class RepeatEvent extends BaseEntity
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var \DateTime
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="startdate", type="datetimetz")
|
||||||
|
*/
|
||||||
|
protected $nextdate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="duration", type="integer", nullable=true)
|
||||||
|
*/
|
||||||
|
protected $duration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ORM\Column(name="name", type="string", length=255)
|
* @ORM\Column(name="name", type="string", length=255)
|
||||||
*/
|
*/
|
||||||
private $repeat_pattern = '';
|
protected $repeat_pattern = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="summary", type="string", length=255)
|
||||||
|
*/
|
||||||
|
protected $summary;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="description", type="text", nullable=true)
|
||||||
|
*/
|
||||||
|
protected $description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Location
|
||||||
|
*
|
||||||
|
* @ORM\ManyToOne(targetEntity="Location")
|
||||||
|
* @ORM\JoinColumn(name="locations_id", referencedColumnName="id")
|
||||||
|
*/
|
||||||
|
protected $location;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="url", type="string", length=255, nullable=true)
|
||||||
|
*/
|
||||||
|
protected $url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*
|
||||||
|
* @ORM\ManyToMany(targetEntity="Tag")
|
||||||
|
* @ORM\JoinTable(name="repeat_events2tags",
|
||||||
|
* joinColumns={@ORM\JoinColumn(name="repeat_events_id", referencedColumnName="id")},
|
||||||
|
* inverseJoinColumns={@ORM\JoinColumn(name="tags_id", referencedColumnName="id")}
|
||||||
|
* )
|
||||||
|
*/
|
||||||
|
protected $tags = [];
|
||||||
|
|
||||||
}
|
}
|
Reference in a new issue