Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Jpg\Events\Domain\Model;
- /* *
- * This script belongs to the TYPO3 Flow package "Jpg.Events". *
- * *
- * */
- use TYPO3\Flow\Annotations as Flow;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * A Person
- *
- * @Flow\Entity
- */
- class Person {
- /**
- * The name
- * @var string
- */
- protected $name;
- /**
- * The events the person is attending
- * @var \Doctrine\Common\Collections\Collection<\Jpg\Events\Domain\Model\Event>
- * @ORM\ManyToMany(mappedBy="persons")
- */
- protected $events;
- /**
- * Constructs this tag
- */
- public function __construct() {
- $this->events = new \Doctrine\Common\Collections\ArrayCollection();
- }
- /**
- * Get the Person's name
- *
- * @return string The Person's name
- */
- public function getName() {
- return $this->name;
- }
- /**
- * Sets this Person's name
- *
- * @param string $name The Person's name
- * @return void
- */
- public function setName($name) {
- $this->name = $name;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment