From 9947bf1e22cda69be199334459557f4a0d97ec87 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 29 Jul 2014 15:08:08 +0200 Subject: [PATCH] Add properties for better code completion. --- .../Bundle/CalciferBundle/Entity/BaseEntity.php | 5 +++++ src/Hackspace/Bundle/CalciferBundle/Entity/Event.php | 8 ++++++++ .../Bundle/CalciferBundle/Entity/RepeatingEvent.php | 9 +++++++++ 3 files changed, 22 insertions(+) diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/BaseEntity.php b/src/Hackspace/Bundle/CalciferBundle/Entity/BaseEntity.php index db1bf2b..ed3a198 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/BaseEntity.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/BaseEntity.php @@ -12,6 +12,11 @@ use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\PersistentCollection; /** + * A baseclass for all other entities + * + * @property integer $id + * @property string $slug + * * @ORM\MappedSuperclass */ abstract class BaseEntity { diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php index baf4b4a..4e33540 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php @@ -7,6 +7,14 @@ use Doctrine\ORM\Mapping as ORM; /** * Event * + * @property \DateTime $startdate + * @property \DateTime $enddate + * @property string $summary + * @property string $description + * @property Location $location + * @property string $url + * @property array $tags + * * @ORM\Table(name="events") * @ORM\Entity */ diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEvent.php b/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEvent.php index 4858ddf..d7a6bcd 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEvent.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEvent.php @@ -8,6 +8,15 @@ 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 */