DoctrineWithEmbedded.php 707 B

123456789101112131415161718192021222324252627282930313233343536
  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\Embedded;
  13. use Doctrine\ORM\Mapping\Entity;
  14. use Doctrine\ORM\Mapping\Id;
  15. /**
  16. * @Entity
  17. *
  18. * @author Udaltsov Valentin <udaltsov.valentin@gmail.com>
  19. */
  20. class DoctrineWithEmbedded
  21. {
  22. /**
  23. * @Id
  24. * @Column(type="smallint")
  25. */
  26. public $id;
  27. /**
  28. * @Embedded(class="DoctrineEmbeddable")
  29. */
  30. protected $embedded;
  31. }