<?phpnamespace JF\JuridicusBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;/** * Partner */class Partner{ const CLASSNAME = __CLASS__; /** * @var integer */ private $id; /** * @var string * @Assert\NotBlank * @Assert\Length(max="32") */ private $name; /** * @var string * @Assert\NotBlank * @Assert\Length(max="64") */ private $anrede_rechnung; /** * @var \JF\JuridicusBundle\Entity\User * @Assert\Valid */ private $user; /** * @var \Doctrine\Common\Collections\Collection */ private $exporte; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set name * * @param string $name * @return Partner */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set user [OWNING SIDE] * * @param \JF\JuridicusBundle\Entity\User $user * @return Partner */ public function setUser(\JF\JuridicusBundle\Entity\User $user = null) { $this->user = $user; return $this; } /** * Get user [OWNING SIDE] * * @return \JF\JuridicusBundle\Entity\User */ public function getUser() { return $this->user; } public function __toString() { if ($this->id) { return $this->name; } return 'Neuer Partner'; } /** * Set anrede_rechnung * * @param string $anredeRechnung * @return Partner */ public function setAnredeRechnung($anredeRechnung) { $this->anrede_rechnung = $anredeRechnung; return $this; } /** * Get anrede_rechnung * * @return string */ public function getAnredeRechnung() { return $this->anrede_rechnung; } /** * Constructor */ public function __construct() { $this->exporte = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add exporte [INVERSE SIDE] * * @param \JF\JuridicusBundle\Entity\Export $exporte * @return Partner */ public function addExporte(\JF\JuridicusBundle\Entity\Export $exporte) { $this->exporte[] = $exporte; return $this; } /** * Remove exporte [INVERSE SIDE] * * @param \JF\JuridicusBundle\Entity\Export $exporte */ public function removeExporte(\JF\JuridicusBundle\Entity\Export $exporte) { $this->exporte->removeElement($exporte); } /** * Get exporte * * @return \Doctrine\Common\Collections\Collection */ public function getExporte() { return $this->exporte; }}