partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 03b99c9a4230e8ac770a37081a357425b658a60f
parent 32d783b6603e5071e275638631c38ad690b7732e
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon,  3 Aug 2015 14:03:34 +0200

Added targetservice annotation for the tips of the day

Diffstat:
Msrc/PartKeepr/TipOfTheDayBundle/Entity/TipOfTheDay.php | 14+++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/PartKeepr/TipOfTheDayBundle/Entity/TipOfTheDay.php b/src/PartKeepr/TipOfTheDayBundle/Entity/TipOfTheDay.php @@ -2,10 +2,10 @@ namespace PartKeepr\TipOfTheDayBundle\Entity; use Doctrine\ORM\Mapping as ORM; +use PartKeepr\DoctrineReflectionBundle\Annotation\TargetService; use PartKeepr\PartKeepr; use PartKeepr\Util\BaseEntity; use PartKeepr\Util\Configuration; -use PartKeepr\Util\Serializable; /** * Represents a tip of the day. @@ -17,8 +17,9 @@ use PartKeepr\Util\Serializable; * Note: If you wish to link against a tip of the day, do it by name and not by id! * * @ORM\Entity + * @TargetService(uri="/api/tip_of_the_days") **/ -class TipOfTheDay extends BaseEntity implements Serializable +class TipOfTheDay extends BaseEntity { /** * @ORM\Column(type="string") @@ -114,13 +115,4 @@ class TipOfTheDay extends BaseEntity implements Serializable return $aPageNames; } - /** - * (non-PHPdoc) - * - * @see PartKeepr\Util.Serializable::serialize() - */ - public function serialize() - { - return array("name" => $this->getName()); - } } \ No newline at end of file