DoctrineRelation.php 809 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures;
  11. use Doctrine\ORM\Mapping\Column;
  12. use Doctrine\ORM\Mapping\Entity;
  13. use Doctrine\ORM\Mapping\Id;
  14. use Doctrine\ORM\Mapping\ManyToOne;
  15. /**
  16. * @Entity
  17. *
  18. * @author Kévin Dunglas <dunglas@gmail.com>
  19. */
  20. class DoctrineRelation
  21. {
  22. /**
  23. * @Id
  24. * @Column(type="smallint")
  25. */
  26. public $id;
  27. /**
  28. * @Column(type="guid")
  29. */
  30. protected $rguid;
  31. /**
  32. * @Column(type="guid")
  33. * @ManyToOne(targetEntity="DoctrineDummy", inversedBy="indexedFoo")
  34. */
  35. protected $foo;
  36. }