DoctrineDummy.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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\ManyToMany;
  15. use Doctrine\ORM\Mapping\ManyToOne;
  16. use Doctrine\ORM\Mapping\OneToMany;
  17. /**
  18. * @Entity
  19. *
  20. * @author Kévin Dunglas <dunglas@gmail.com>
  21. */
  22. class DoctrineDummy
  23. {
  24. /**
  25. * @Id
  26. * @Column(type="smallint")
  27. */
  28. public $id;
  29. /**
  30. * @ManyToOne(targetEntity="DoctrineRelation")
  31. */
  32. public $foo;
  33. /**
  34. * @ManyToMany(targetEntity="DoctrineRelation")
  35. */
  36. public $bar;
  37. /**
  38. * @ManyToMany(targetEntity="DoctrineRelation", indexBy="rguid")
  39. */
  40. protected $indexedBar;
  41. /**
  42. * @OneToMany(targetEntity="DoctrineRelation", mappedBy="foo", indexBy="foo")
  43. */
  44. protected $indexedFoo;
  45. /**
  46. * @Column(type="guid")
  47. */
  48. protected $guid;
  49. /**
  50. * @Column(type="time")
  51. */
  52. private $time;
  53. /**
  54. * @Column(type="json_array")
  55. */
  56. private $json;
  57. /**
  58. * @Column(type="simple_array")
  59. */
  60. private $simpleArray;
  61. /**
  62. * @Column(type="float")
  63. */
  64. private $float;
  65. /**
  66. * @Column(type="decimal", precision=10, scale=2)
  67. */
  68. private $decimal;
  69. /**
  70. * @Column(type="boolean")
  71. */
  72. private $bool;
  73. /**
  74. * @Column(type="binary")
  75. */
  76. private $binary;
  77. /**
  78. * @Column(type="custom_foo")
  79. */
  80. private $customFoo;
  81. /**
  82. * @Column(type="bigint")
  83. */
  84. private $bigint;
  85. public $notMapped;
  86. }