NestedSetEntityUuid.php 515 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Gedmo\Tree\Traits;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * NestedSet Trait with UUid, usable with PHP >= 5.4
  7. *
  8. * @author Benjamin Lazarecki <benjamin.lazarecki@sensiolabs.com>
  9. *
  10. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  11. */
  12. trait NestedSetEntityUuid
  13. {
  14. use NestedSetEntity;
  15. /**
  16. * @var string
  17. * @Gedmo\TreeRoot
  18. * @ORM\Column(name="root", type="string", nullable=true)
  19. */
  20. private $root;
  21. }