RequireLink.php 722 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of Packagist.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. * Nils Adermann <naderman@naderman.de>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Packagist\WebBundle\Entity;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14. * @ORM\Entity
  15. * @ORM\Table(name="link_require", indexes={
  16. * @ORM\Index(name="package_name_idx",columns={"version_id", "packageName"})
  17. * })
  18. * @author Jordi Boggiano <j.boggiano@seld.be>
  19. */
  20. class RequireLink extends PackageLink
  21. {
  22. /**
  23. * @ORM\ManyToOne(targetEntity="Packagist\WebBundle\Entity\Version", inversedBy="require")
  24. */
  25. protected $version;
  26. }