This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
calcifer/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEvent.php
2014-09-21 20:01:56 +02:00

87 lines
No EOL
1.9 KiB
PHP
Executable file

<?php
namespace Hackspace\Bundle\CalciferBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\PersistentCollection;
/**
* RepeatEvent
*
* @property \DateTime $nextdate
* @property integer $duration
* @property string $repeating_pattern
* @property string $summary
* @property string $description
* @property Location $location
* @property string $url
* @property array $tags
*
* @ORM\Table(name="repeating_events")
* @ORM\Entity
*/
class RepeatingEvent extends BaseEntity
{
use TagTrait;
/**
* @var \DateTime
*
* @ORM\Column(name="nextdate", type="datetimetz")
*/
protected $nextdate;
/**
* @var integer
*
* @ORM\Column(name="duration", type="integer", nullable=true)
*/
protected $duration;
/**
* @var string
*
* @ORM\Column(name="repeating_pattern", type="string", length=255)
*/
protected $repeating_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="repeating_events2tags",
* joinColumns={@ORM\JoinColumn(name="repeating_events_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="tags_id", referencedColumnName="id")}
* )
*/
protected $tags = [];
}