Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Lemmsings\App\Domain\Model;
- use TYPO3\Flow\Annotations as Flow;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @Flow\Entity
- */
- class Customer {
- /**
- * @var string
- * @Flow\Validate(type="NotEmpty")
- */
- protected $name;
- /**
- * @var string
- * @Flow\Validate(type="NotEmpty")
- */
- protected $shortName;
- /**
- * @var \Doctrine\Common\Collections\ArrayCollection<\Lemmsings\App\Domain\Model\User>
- * @ORM\ManyToMany
- * @Flow\Lazy
- */
- protected $users;
- /**
- * @param string $name
- */
- public function setName($name) {
- $this->name = $name;
- }
- /**
- * @return string
- */
- public function getName() {
- return $this->name;
- }
- /**
- * @param string $shortName
- */
- public function setShortName($shortName) {
- $this->shortName = $shortName;
- }
- /**
- * @return string
- */
- public function getShortName() {
- return $this->shortName;
- }
- /**
- * @return mixed
- */
- public function getUsers() {
- return $this->users;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement